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

OPERATIONS MANAGEMENT SYSTEM

STACK SUMMARY


@foreach ($stacks as $stack)

{{strtoupper($stack->stack_name)}}
CAPACITY: {{strtoupper($stack->stack_capacity)}} Bags
{{strtoupper($stack->stack_capacity/16)}} in Tonnes
BAGS: {{$stack->waybill_stacks->sum('bags_quantity_added') - $stack->waybill_stacks->sum('bags_quantity_evacuated')}} CAT: @foreach ($categorys as $category) @if ($category->id == $stack->waybill_stacks->where('type','offloading')->pluck('category_id')->last()) {{strtoupper($category->name)}} @endif @endforeach
{{ ($stack->waybill_stacks->sum('bags_quantity_added') - $stack->waybill_stacks->sum('bags_quantity_evacuated'))/$stack->stack_capacity * 100}}% of {{$stack->stack_capacity}}
@endforeach
@endsection @section('more-scripts') @endsection