94 lines
4.6 KiB
PHP
94 lines
4.6 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('breadcrumb')
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="javascript:void(0);">Perhitungan</a></li>
|
|
<li class="breadcrumb-item"><a href="{{ route('rekapitulasi.pengeluaran.index') }}">Pengeluaran</a></li>
|
|
<li class="breadcrumb-item active" aria-current="page">{{ $title }}</li>
|
|
</ol>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card border">
|
|
<div class="card-body">
|
|
<div class="mb-4">
|
|
<h4 class="mb-3">{{ $title }}</h4>
|
|
<p class="text-muted mb-0">Periode: {{ $periodeNama }}</p>
|
|
@if ($unitKerjaInfo)
|
|
<p class="text-muted mb-0">Unit Pembayaran: {{ $unitKerjaInfo->nama }}</p>
|
|
@endif
|
|
@if ($filterTahun)
|
|
<p class="text-muted mb-0">Filter Tahun: {{ $filterTahun }}</p>
|
|
@endif
|
|
@if ($filterSemester)
|
|
<p class="text-muted mb-0">Filter Semester: {{ $filterSemester }}</p>
|
|
@endif
|
|
<p class="text-muted mb-0">Data Remunerasi P2 untuk Pegawai Tertentu</p>
|
|
</div>
|
|
|
|
<!-- Table Section -->
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered w-100" id="detailKekuranganTable">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 50px;">No</th>
|
|
<th>NIP</th>
|
|
<th>Nama</th>
|
|
<th>Unit Kerja</th>
|
|
<th>Total Poin P2</th>
|
|
<th>Total P2</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse ($pegawaiData as $index => $pegawai)
|
|
<tr>
|
|
<td class="text-center">{{ $index + 1 }}</td>
|
|
<td>{{ $pegawai['nip'] }}</td>
|
|
<td>{{ $pegawai['nama'] }}</td>
|
|
<td>{{ $pegawai['unit_kerja'] }}</td>
|
|
<td class="text-center">{{ number_format($pegawai['total_poin_p2'], 2, ',', '.') }}</td>
|
|
<td class="text-end">Rp. {{ number_format($pegawai['total_p2'], 0, ',', '.') }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="6" class="text-center">Tidak ada data dengan filter yang dipilih</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
@if (count($pegawaiData) > 0)
|
|
<tfoot>
|
|
<tr class="table-info">
|
|
<td colspan="4" class="text-end"><strong>Total Keseluruhan:</strong></td>
|
|
<td class="text-center">
|
|
<strong>
|
|
{{ number_format(array_sum(array_column($pegawaiData, 'total_poin_p2')), 2, ',', '.') }}
|
|
</strong>
|
|
</td>
|
|
<td class="text-end">
|
|
<strong>
|
|
Rp. {{ number_format(array_sum(array_column($pegawaiData, 'total_p2')), 0, ',', '.') }}
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
@endif
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Back Button -->
|
|
<div class="mt-3">
|
|
<a href="{{ route('rekapitulasi.pengeluaran.index') }}" class="btn btn-secondary">
|
|
<i class="mdi mdi-arrow-left"></i> Kembali
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@section('js')
|
|
@endsection
|