@php
$getUserRoleData = userRoleData();
$inventorys = explode(",",$getUserRoleData->inventory);
@endphp
@if(count($result['MaskProductionInventorysData'])>0)
@foreach ($result['MaskProductionInventorysData'] as $rsVal)
@php
$dip = getMaskProductionAvailableQuantity($rsVal->id);
//print_r($dip);
@endphp
{{ $rsVal->id }} |
@if(count($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($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($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($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
|
@php
$operator_name = [];
@endphp
@if(count($rsVal['get_stock'])>0)
@foreach ($rsVal['get_stock'] as $rsValOp)
@php
if (!empty($rsValOp->operator_name)) {
$operator_name[] = $rsValOp->operator_name;
}
@endphp
@endforeach
@endif
@if(count(array_unique($operator_name))>0)
@php
//print_r(array_unique($operator_name));
//print_r($operator_name);
$i=1;
foreach (array_unique($operator_name) as $opVal) {
echo $i++. '. ' . $opVal . ' ';
}
@endphp
@endif
|
{{ date('d-m-Y H:i:s', strtotime($rsVal->created_at)) }} |
{{-- @if(in_array("Delete", $inventorys) || in_array("Edit", $inventorys)) --}}
{{-- @if(in_array("Edit", $inventorys)) --}}
{{-- @endif --}}
@if($rsVal->is_active == '1')
Active
@else
Inactive
@endif
Add Production
Details
{{-- @if(in_array("Delete", $inventorys)) --}}
{{--
--}}
{{-- @endif --}}
|
{{-- @endif --}}
@endforeach