@php /** @var bool $isPdf */ $isPdf = $isPdf ?? false; @endphp @if($isPdf) {{-- ========== PDF MODE (mpdf साठी) ========== --}}
{{-- HEADER --}}
KENT International Pvt. Ltd.
Container Report
{{-- STATS CARDS --}} @php $totalContainers = $reports->count(); $totalInvoices = $reports->sum('total_invoices'); $totalPayable = $reports->sum('total_payable'); $totalPaid = $reports->sum('total_paid'); $totalRemaining = $reports->sum('total_remaining'); $overdueCount = $reports->where('container_status','overdue')->count(); @endphp
{{-- Row 1 --}} {{-- Total Containers --}} {{-- Total Invoices --}} {{-- Total Payable --}} {{-- Row 2 --}} {{-- Total Paid --}} {{-- Total Remaining --}} {{-- Overdue Containers --}}
  {{ $totalContainers }} Total Containers
  {{ $totalInvoices }} Total Invoices
  ₹{{ number_format($totalPayable, 0) }} Total Payable
  ₹{{ number_format($totalPaid, 0) }} Total Paid
  ₹{{ number_format($totalRemaining, 0) }} Total Remaining
  {{ $overdueCount }} Overdue Containers
{{-- TABLE --}}
@forelse($reports as $i => $r) @php $cs = strtolower($r->container_status); @endphp @empty @endforelse
Sr. Container No Container Date Total Mark Nos Total Customers Total Invoices Invoice Amount
(Before GST)
GST Amount Payable Amount
(Incl. GST)
Paid Amount Remaining Amount Container Status
{{ $i + 1 }} {{ $r->container_number }} {{ $r->container_date ? \Carbon\Carbon::parse($r->container_date)->format('d-m-Y') : '-' }} {{ $r->total_mark_nos }} {{ $r->total_customers }} {{ $r->total_invoices }} ₹{{ number_format($r->total_invoice_amount, 2) }} ₹{{ number_format($r->total_gst_amount, 2) }} ₹{{ number_format($r->total_payable, 2) }} ₹{{ number_format($r->total_paid, 2) }} ₹{{ number_format($r->total_remaining, 2) }} {{ ucfirst($cs) }}

No Container Reports Found

No containers with invoices found.

@else {{-- ========== NORMAL UI MODE (Browser साठी) ========== --}} @extends('admin.layouts.app') @section('page-title', 'Container Report') @section('content')
{{-- HEADER --}}

Container Report

Container-wise invoice summary — amounts, payments & status

{{-- STATS CARDS --}}
{{ count($reports) }}
Total Containers
{{ $reports->sum('total_invoices') }}
Total Invoices
₹{{ number_format($reports->sum('total_payable'), 0) }}
Total Payable
₹{{ number_format($reports->sum('total_paid'), 0) }}
Total Paid
₹{{ number_format($reports->sum('total_remaining'), 0) }}
Total Remaining
{{ $reports->where('container_status', 'overdue')->count() }}
Overdue Containers
{{-- FILTERS --}}
{{-- TABLE --}}
@forelse($reports as $i => $r) @php $cs = strtolower($r->container_status); @endphp @empty @endforelse
# Container No Container Date Total Mark Nos Total Customers Total Invoices Invoice Amount
(Before GST)
GST Amount Payable Amount
(Incl. GST)
Paid Amount Remaining Amount Container Status
{{ $i + 1 }} {{ $r->container_number }} {{ $r->container_date ? \Carbon\Carbon::parse($r->container_date)->format('d-m-Y') : '-' }} {{ $r->total_mark_nos }} {{ $r->total_customers }} {{ $r->total_invoices }} ₹{{ number_format($r->total_invoice_amount, 2) }} ₹{{ number_format($r->total_gst_amount, 2) }} ₹{{ number_format($r->total_payable, 2) }} ₹{{ number_format($r->total_paid, 2) }} ₹{{ number_format($r->total_remaining, 2) }} @if($cs === 'paid') @elseif($cs === 'overdue') @elseif($cs === 'paying') @else @endif {{ ucfirst($cs) }}

No Container Reports Found

No containers with invoices found.

{{-- PAGINATION --}}
Showing 1–{{ min(15, count($reports)) }} of {{ count($reports) }} entries
@endsection @endif