@extends('layout') @section('title', 'Search by No Ajuan') @section('content')
Cari Data Berdasarkan No Ajuan (No Aju)
@csrf
Masukkan No Ajuan lengkap untuk melihat detail data @error('no_aju') {{ $message }} @enderror
@isset($results)
Hasil Pencarian: No Aju "{{ $no_aju }}"

Total ditemukan: {{ $results->total() }} data

{{-- @if($results->total() > 0) @endif --}}
@if($results->total() > 0)
Total Harga

$ {{ number_format($summary['total_cif'] ?? 0, 2) }}

Total Bayar

Rp {{ number_format($summary['total_bayar'] ?? 0, 0, ',', '.') }}

Total Denda

Rp {{ number_format($summary['total_denda'] ?? 0, 0, ',', '.') }}

Total Bayar

Rp {{ number_format($summary['total_bayar'] ?? 0, 0, ',', '.') }}

@foreach($results as $index => $result) @php $bayar = $result->bmby + $result->bmtpby + $result->bmadby + $result->pphby + $result->ppnby; $denda = $result->denda_per_pib + $result->kurang_bmby_per_pib + $result->kurang_pphby_per_pib + $result->kurang_ppnby_per_pib; $cif_idr = $result->cif * 16000; @endphp @endforeach
# No Ajuan No PIB Tanggal PIB Nama Importir HS Code Nama Barang Bayar Harga (USD) Denda Aksi
{{ ($results->currentPage() - 1) * $results->perPage() + $index + 1 }} {{ $result->no_aju ?? '-' }} {{ $result->no_pib ?? '-' }} @if($result->tgl_pib) {{ date('d-m-Y', strtotime($result->tgl_pib)) }} @else - @endif
{{ $result->nm_imp ?? '-' }}
@if($result->nm_ppjk) PPJK: {{ $result->nm_ppjk }} @endif
{{ $result->hs_code }} @if($result->type)
Type: {{ $result->type }} @endif
{{ $result->ur_brg }}
@if($result->kd_sat_hrg) Satuan: {{ $result->kd_sat_hrg }} @endif
Rp {{ number_format($bayar, 0, ',', '.') }} $ {{ number_format($result->cif, 2) }}
≈ Rp {{ number_format($cif_idr, 0, ',', '.') }}
Rp {{ number_format($denda, 0, ',', '.') }}
TOTAL: Rp {{ number_format($summary['total_bayar'] ?? 0, 0, ',', '.') }} $ {{ number_format($summary['total_cif'] ?? 0, 2) }} Rp {{ number_format($summary['total_denda'] ?? 0, 0, ',', '.') }}
@if($results->hasPages())

Menampilkan {{ $results->firstItem() }} - {{ $results->lastItem() }} dari {{ $results->total() }} data

{{ $results->appends([ 'no_aju' => $no_aju, 'sort' => $sort, 'order' => $order ])->onEachSide(1)->links('pagination::bootstrap-4') }}
@endif
Export ke Excel {{-- --}}
@else
Tidak ditemukan data dengan No Ajuan "{{ $no_aju }}".
Pastikan No Ajuan yang dimasukkan benar atau coba No Ajuan lainnya.
@endif @endisset
@endsection @section('js') @endsection