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

OPERATIONS MANAGEMENT SYSTEM

FACTORY EVACUATION REPORT @if ($_SESSION['consignee'] != 'all') ({{ App\Model\consignee::find($_SESSION['consignee'])->name }}) @endif

@if ($_SESSION['consignee'] == 'all') @endif @foreach ($factory_evacuations as $factory_evacuation) @if ($_SESSION['consignee'] == 'all') @endif @if ($factory_evacuation->tolling_consignee_id == null) @else @endif @if ($factory_evacuation->factory_consignee_id == null) @else @endif @if ($factory_evacuation->artisanal_id == null) @else @endif @if ($factory_evacuation->artisanal_id == null) @else @endif @if ($factory_evacuation->port_of_exit == null) @else @endif @if ($factory_evacuation->destination == null) @else @endif @endforeach
No.Factory(Main)Date of Entry Date Mode of Evacuation Factory(Tolling) Type of Shipment Factory Artisanal Others Type of Product Quantity (Tonnes) Returned Tonnage Port of Loading Destination Port
{{ $count++ }}.{{ strtoupper($factory_evacuation->consignee->name) }} {{ $factory_evacuation->created_at ? Carbon\Carbon::parse($factory_evacuation->created_at)->format('j M Y g:i a') : null }} {{ $factory_evacuation->date ? Carbon\Carbon::parse($factory_evacuation->date)->format('j M Y') : null }} {{ strtoupper($factory_evacuation->mode_of_evacuation) }}N/A{{ strtoupper(optional(App\Model\consignee::find($factory_evacuation->tolling_consignee_id))->name) }}{{ strtoupper($factory_evacuation->type_of_shipment) }}N/A{{ strtoupper(optional(App\Model\consignee::find($factory_evacuation->factory_consignee_id))->name) }}N/A{{ strtoupper(optional($factory_evacuation->artisanal)->name) }}N/A{{ strtoupper($factory_evacuation->others) }}{{ $factory_evacuation->type_of_product->type_of_product }} {{ $factory_evacuation->quantity }} {{ optional($factory_evacuation->return_factory_shipments->first())->quantity_returned }}N/A{{ $factory_evacuation->port_of_exit }}N/A{{ $factory_evacuation->destination }}
{!! $factory_evacuations->render() !!}
@endsection @section('more-scripts') @endsection