@extends('admin.master') @section('content')

Container Details

  1. Home
  2. Containers
  3. View Container
Container Details
Back Edit
{{-- Basic Information --}}
Basic Information
{{ $container->container_no }}
{{ $container->container_ref_no }}
{{ date('d M Y', strtotime($container->arrival_date)) }}
{{--
{{ $container->end_sale_date ? date('d M Y', strtotime($container->end_sale_date)) : '-' }}
--}}
{{ number_format($container->total_qty) }}
{{-- Financial Summary - Premium Colored Boxes --}}
Financial Summary
{{-- Row 1 --}}
{{ config('constants.currency_symbol') }} {{ number_format($container->total_cost, 2) }}
USD {{ number_format($container->total_usd ?? 0, 2) }}
{{ config('constants.currency_symbol') }} {{ number_format($container->freight_cost, 2) }}
{{ config('constants.currency_symbol') }} {{ number_format($container->transportation_cost ?? 0, 2) }}
{{ config('constants.currency_symbol') }} {{ number_format($container->detention_charges ?? 0, 2) }}
{{ config('constants.currency_symbol') }} {{ number_format(($container->total_cost ?? 0) + ($container->freight_cost ?? 0) + ($container->transportation_cost ?? 0) + ($container->detention_charges ?? 0), 2) }}
{{-- Row 2 --}}
{{ $container->duety_percentage ?? 0 }}% ({{ config('constants.currency_symbol') }} {{ number_format($container->duety_amount ?? 0, 2) }})
{{ config('constants.currency_symbol') }} {{ number_format($container->total_incl_duety ?? 0, 2) }}
{{ $container->vat_percentage ?? 0 }}% ({{ config('constants.currency_symbol') }} {{ number_format($container->vat_amount ?? 0, 2) }})
{{-- Grand Total - Highlighted --}}
{{ config('constants.currency_symbol') }} {{ number_format($container->total, 2) }}
{{-- Documents --}}
Documents

@if($container->purchase_invoice) View Invoice @else No file uploaded @endif

@if($container->freight_invoice) View Invoice @else No file uploaded @endif

@if($container->transportation_invoice) View Invoice @else No file uploaded @endif

@if($container->detention_invoice) View Invoice @else No file uploaded @endif
{{-- Notes --}}
Notes

{{ $container->notes ?: 'No notes available.' }}


Container Items
@forelse($groupedItems as $product)
{{ $product['product_name'] }}
{{ number_format($product['product_total']) }} pcs
@if(count($product['active_sizes']) > 0) @endif @foreach($product['active_sizes'] as $size) @endforeach @foreach($product['colors'] as $index => $colorRow) @foreach($product['active_sizes'] as $size) @endforeach @endforeach
Sr. Color SIZES Total
{{ $size }}
{{ $index + 1 }}
{{ $colorRow['color'] }}
{{ $colorRow['sizes'][$size] ?? 0 }} {{ $colorRow['total'] }}
@empty
No items found in this container.
@endforelse
@endsection