@extends('admin.layout.app') @section('more-head') @endsection @section('main-content')

Draft Invoices

shipment

@can('add.shipment', Auth::user()) @endcan
{{-- --}} @can('edit.invoice', Auth::user()) @endcan @can('delete.invoice', Auth::user()) @endcan @can('view.draft.invoice', Auth::user()) @endcan @can('send.supervisor', Auth::user()) @endcan @can('view.draft.invoice', Auth::user()) @endcan @foreach ($shipments as $shipment) {{-- --}} @can('edit.invoice', Auth::user()) @endcan @can('delete.invoice', Auth::user()) @endcan @can('view.draft.invoice', Auth::user()) @endcan @can('send.supervisor', Auth::user()) @endcan @can('view.draft.invoice', Auth::user()) @endcan @endforeach {{-- --}} @can('edit.invoice', Auth::user()) @endcan @can('delete.invoice', Auth::user()) @endcan @can('view.draft.invoice', Auth::user()) @endcan @can('send.supervisor', Auth::user()) @endcan @can('view.draft.invoice', Auth::user()) @endcan
No. Contract Number Invoice NumberReference NumberInsurance Number Invoice Date Tonnage Shipped Freight Exchange
Rate
Vessel Mode of Shipment Destination Bill of Laden Number ill of Laden Date Loading Port Insurance Premium Sum Insured Prepared By EDITDELETEDraft InvoiceSend to SupervisorPREMIUM
{{ $loop->index + 1 }}. {{ optional($shipment->contract)->number }} (SD: {{ optional($shipment->fac)->sd_number }}) {{ $shipment->invoice_number }}{{$shipment->reference_number}}{{ $shipment->insurance_number }} {{ $shipment->invoice_date ? date('d - M - Y', strtotime($shipment->invoice_date)) : null }} {{ number_format($shipment->tonnage_shipped, 4) }} {{ $shipment->bl_rate }} {{ optional($shipment->vessel)->name }} {{ optional($shipment->shippingmode)->name }} {{ $shipment->contract?->destinationport->name }} {{ $shipment->bill_of_laden_number }} {{ $shipment->bill_of_laden_date ? date('d - M - Y', strtotime($shipment->bill_of_laden_date)) : null }} {{ optional($shipment->loadingport)->name }} @if (optional($shipment->invoice_detail)->insurance_premium != null && optional($shipment->invoice_detail)->base_id != 3) US ${{ number_format(optional($shipment->invoice_detail)->insurance_premium, 2) }} @else 0 @endif @if (optional($shipment->invoice_detail)->sum_insured != null) US ${{ number_format(optional($shipment->invoice_detail)->sum_insured, 2) }} @else 0 @endif @foreach ($users as $user) @if ($user->id == $shipment->user_id) {{ $user->username }} @endif @endforeach EDIT Prepare Invoice {{ csrf_field() }} status == 'sup') disabled @endif>Send to Supervisor premium_id == null) disabled onclick="event.preventDefault();" oncontextmenu="return false;" @endif>PREMIUM
No. Contract Number Invoice NumberReference NumberInsurance Number Invoice Date Tonnage Shipped Freight Exchange
Rate
Vessel Mode of Shipment Destination Bill of Laden Number Bill of Laden Date Loading Port Insurance Premium Sum Insured Prepared By EDITDELETEDraft InvoiceSend to SupervisorPREMIUM
@endsection @section('more-scripts') @endsection