diff --git a/public/images/kentlogo1.png b/public/images/kentlogo1.png new file mode 100644 index 0000000..bf3323b Binary files /dev/null and b/public/images/kentlogo1.png differ diff --git a/resources/views/admin/container_pdf.blade.php b/resources/views/admin/container_pdf.blade.php index e159674..fc9860b 100644 --- a/resources/views/admin/container_pdf.blade.php +++ b/resources/views/admin/container_pdf.blade.php @@ -12,6 +12,40 @@ background: #e5e7ff; } + /* LOGO HEADER */ + .logo-header-wrap { + width: 100%; + margin-bottom: 6px; + } + .logo-header-inner { + display: table; + } + .logo-header-logo-cell { + display: table-cell; + vertical-align: middle; + } + .logo-header-text-cell { + display: table-cell; + vertical-align: middle; + padding-left: 8px; + } + .logo-header-logo { + height: 32px; /* banner type, कमी उंची */ + object-fit: contain; + } + .logo-header-title-top { + font-size: 14px; + font-weight: 700; + color: #7b1111; /* dark maroon */ + line-height: 1.1; + } + .logo-header-title-bottom { + font-size: 12px; + font-weight: 500; + color: #7b1111; + line-height: 1.1; + } + /* COMMON CARD GRID – 4 equal columns, 2 rows */ .card-grid { display: table; @@ -33,10 +67,10 @@ } /* INFO CARDS (FIRST ROW) */ - .info-id { background: #e0f2ff; border-left: 4px solid #2563eb; } - .info-no { background: #dcfce7; border-left: 4px solid #22c55e; } - .info-date { background: #fee2e2; border-left: 4px solid #ef4444; } - .info-name { background: #fef9c3; border-left: 4px solid #f59e0b; } + .info-id { background: #e0f2ff; border-left: 4px solid #2563eb; } + .info-no { background: #dcfce7; border-left: 4px solid #22c55e; } + .info-date { background: #fee2e2; border-left: 4px solid #ef4444; } + .info-name { background: #fef9c3; border-left: 4px solid #f59e0b; } /* TOTAL CARDS (SECOND ROW) */ .total-ctn { background: #dbeafe; border-left: 4px solid #1d4ed8; } @@ -62,7 +96,7 @@ margin-top: 2px; } - /* TABLE – solid yellow header like screenshot */ + /* TABLE – solid yellow header */ table { width: 100%; border-collapse: collapse; @@ -79,7 +113,7 @@ word-wrap: break-word; } th { - background: #fbd85d; /* इथे solid yellow */ + background: #fbd85d; font-size: 9px; font-weight: 700; color: #0c0909; @@ -132,6 +166,21 @@ } @endphp +{{-- LOGO + TEXT – full left, text खाली (reference image) --}} +
+ | Invoice No | +Date | +Mark No | +Container | +Cont. Date | +Company | +Customer | +Amount | +Amount+GST | +Status | +
|---|---|---|---|---|---|---|---|---|---|
| {{ $inv->invoice_number ?? '-' }} | +{{ $inv->invoice_date ? \Carbon\Carbon::parse($inv->invoice_date)->format('d-m-Y') : '-' }} | +{{ $inv->mark_no ?? '-' }} | +{{ $inv->container_number ?? '-' }} | +{{ $inv->container_date ? \Carbon\Carbon::parse($inv->container_date)->format('d-m-Y') : '-' }} | +{{ $inv->company_name ?? '-' }} | +{{ $inv->customer_name ?? '-' }} | +{{ $inv->final_amount ? '₹'.number_format($inv->final_amount, 2) : '-' }} | +{{ $inv->final_amount_with_gst ? '₹'.number_format($inv->final_amount_with_gst, 2) : '-' }} | ++ @php + $status = strtolower($inv->invoice_status ?? 'pending'); + @endphp + {{ ucfirst($status) }} + | +