@php
$getUserRoleData = userRoleData();
$manufacturing_report = explode(",",$getUserRoleData->manufacturing_report);
@endphp
@if(count((array) $result['MaskProductionInventorysData'])>0)
@foreach ($result['MaskProductionInventorysData'] as $rsVal)
@php
$dip = getMaskProductionAvailableQuantity($rsVal->id);
//print_r($dip);
@endphp
{{ $rsVal->id }} |
@if(count((array) $rsVal['get_machines'])>0)
{{ $rsVal['get_machines']->name }}
@endif
|
{{-- @if(!empty($rsVal->order_id)){{ $rsVal->order_id }}@endif | --}}
@if(count($dip)>0)
@if($dip[0]->available_quantity_acccepted == '0')
0
@else
{{ $dip[0]->available_quantity_acccepted }}
@endif
@if(count((array) $rsVal['get_units'])>0)
{{ $rsVal['get_units']->name }}
@endif
@endif
|
@if(count($dip)>0)
@if($dip[0]->available_quantity_rejected == '0')
0
@else
{{ $dip[0]->available_quantity_rejected }}
@endif
@if(count((array) $rsVal['get_units'])>0)
{{ $rsVal['get_units']->name }}
@endif
@endif
|
@if(count($dip)>0)
{{ $dip[0]->available_quantity_acccepted + $dip[0]->available_quantity_rejected }}
@if(count((array) $rsVal['get_units'])>0)
{{ $rsVal['get_units']->name }}
@endif
@endif
|
@if(count($dip)>0)
@if($dip[0]->available_quantity_rejected != '0')
{{ number_format($dip[0]->available_quantity_rejected/($dip[0]->available_quantity_acccepted + $dip[0]->available_quantity_rejected)* 100,2) }}
@else
0
@endif
@endif
|
{{ date('d-m-Y H:i:s', strtotime($rsVal->created_at)) }} |
@if(in_array("Add", $manufacturing_report) || in_array("Edit", $manufacturing_report) || in_array("View", $manufacturing_report))
{{-- @if(in_array("Edit", $manufacturing_report))
@endif --}}
@if(in_array("Edit", $manufacturing_report))
@if($rsVal->is_active == '1')
Active
@else
Inactive
@endif
@endif
@if(in_array("Add", $manufacturing_report))
Add Production
@endif
@if(in_array("View", $manufacturing_report))
Details
@endif
{{-- @if(in_array("Delete", $inventorys)) --}}
{{--
--}}
{{-- @endif --}}
|
@endif
@endforeach