@extends('layout') @section('title', 'Search by Nama PT') @section('content')
Cari Data Berdasarkan Nama PT (Importir)
@csrf
Masukkan satu atau lebih nama perusahaan importir untuk mencari data
@if(isset($nm_imp) && is_array($nm_imp) && count($nm_imp) > 1) @for($i = 1; $i < count($nm_imp); $i++) @if($nm_imp[$i] != '')
@endif @endfor @endif
@error('nm_imp.*') {{ $message }} @enderror Tekan tombol untuk menambah input PT lain
@isset($results)
Hasil Pencarian

PT yang dicari: @if(isset($nm_imp) && is_array($nm_imp)) @foreach($nm_imp as $index => $pt) @if($pt != '') {{ $pt }} @endif @endforeach @endif
Total ditemukan: {{ $results->total() }} data @if($start_date || $end_date) | Periode: @if($start_date) {{ date('d-m-Y', strtotime($start_date)) }} @endif @if($start_date && $end_date) s/d @endif @if($end_date) {{ date('d-m-Y', strtotime($end_date)) }} @endif @endif

@if($results->total() > 0)
Total Transaksi

{{ number_format($summary['total_transactions'] ?? 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, ',', '.') }}

@foreach($results as $index => $result) @endforeach
# No Aju No PIB Tanggal PIB Nama Importir Jml 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->jumlah_barang }} Rp {{ number_format($result->total_bayar_per_pib, 0, ',', '.') }} $ {{ number_format($result->total_cif_per_pib, 2) }}
≈ Rp {{ number_format($result->total_cif_per_pib * 16000, 0, ',', '.') }}
Rp {{ number_format($result->max_denda_per_pib, 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([ 'nm_imp' => $nm_imp, 'start_date' => $start_date, 'end_date' => $end_date, 'sort' => $sort, 'order' => $order ])->onEachSide(1)->links('pagination::bootstrap-4') }}
@endif @else
Tidak ditemukan data untuk PT yang dicari.
@if($start_date || $end_date) Coba perbaiki filter tanggal atau gunakan kata kunci yang lebih umum. @else Pastikan nama PT yang dimasukkan benar atau coba gunakan kata kunci yang lebih umum. @endif
@endif @endisset
@endsection @section('js') @endsection