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

OPERATIONS MANAGEMENT SYSTEM

COST SHEET

{{-- @can('stats.user', Auth::user()) --}} {{-- --}} {{-- @endcan --}}
@php use Carbon\Carbon; @endphp
COST SHEET REF. GANG TOC SEASON COST SHEET DATE TYPE
{{$cost_sheet->cost_sheet_ref}} {{$cost_sheet->gang->gang_name}} {{$cost_sheet->port->name}} {{$cost_sheet->season->name}} {{Carbon::parse($cost_sheet->cost_sheet_date)->format('dS M Y')}} {{strtoupper($cost_sheet->type)}}
@can('labour_supply_accra', Auth::user()) @endcan @foreach ($shed_gang_allocations as $shed_gang_allocation) @can('labour_supply_accra', Auth::user()) @endcan @endforeach @can('labour_supply_accra', Auth::user()) @endcan
No. Activity Summary Refernce Activity Shed Quantity Fulfilled (Bags) Activity Date Rate WAGE GH¢ LBC Factory Internal Waybill No. Internal Waybill Date Shed Waybill No. Shed Waybill Date Purity Date Purity Number Remarks Other Remarks GH¢ WAGE
{{ $loop->index + 1 }}. {{strtoupper(optional($shed_gang_allocation->activity_summary)->activity_summary_ref)}} {{ $shed_gang_allocation->activity->activity_name }} {{ $shed_gang_allocation->shed->name }} {{ $shed_gang_allocation->quantity_fulfiled }} {{ Carbon::parse($shed_gang_allocation->gang_allocation->allocation_date)->format('dS M Y') }} {{ $shed_gang_allocation->gang_rate }} {{ $shed_gang_allocation->gang_wages }} {{ optional(optional($shed_gang_allocation->internal_waybill)->lbc)->name }} {{ optional(optional($shed_gang_allocation->shed_waybill)->consignee)->name }} {{ optional($shed_gang_allocation->internal_waybill)->internal_waybill_no }} {{ optional($shed_gang_allocation->internal_waybill)->internal_waybill_date }} {{ optional($shed_gang_allocation->shed_waybill)->waybill_no }} {{ optional($shed_gang_allocation->shed_waybill)->waybill_date }} {{ optional($shed_gang_allocation->internal_waybill)->purity_date }} {{ optional($shed_gang_allocation->internal_waybill)->purity_number }} {{ strtoupper($shed_gang_allocation->remarks) }} {{ strtoupper($shed_gang_allocation->other_remarks) }}{{ number_format($shed_gang_allocation->gang_wages, 2) }}
TOTAL BAGS {{ ($shed_gang_allocations->sum('quantity_fulfiled'))}} TOTAL WAGES GH¢ {{number_format($shed_gang_allocations->sum('gang_wages'),2)}}
VAT GH¢ {{number_format($cost_sheet->vat,2)}}
TOTAL COST GH¢ {{number_format($cost_sheet->total_cost,2)}}
@endsection @section('more-scripts') @endsection