COCOA DELIVERIES BY LBC - CATEGORY BASIS
{{strtoupper(App\Model\port::find($user_port_id)->name)}} TOC
LBC | @foreach ($categorys as $category){{$category->name}} | @endforeachTOTAL |
---|---|---|
{{$lbc->name}} | @foreach ($categorys as $category){{App\Model\category::find($category->id)->internal_waybills()->where('port_id', $user_port_id)->where('purity_category_id',$category->id)->where('lbc_id',$lbc->id)->sum('purity_no_of_bags_ok')/16}} | @endforeach{{App\Model\internal_waybill::where('lbc_id',$lbc->id)->where('port_id', $user_port_id)->sum('purity_no_of_bags_ok')/16}} |