@foreach ($list_process as $process_name => $lp)
| No |
{{$process_name}} |
Item |
@foreach ($date_list_header as $key => $dlh)
{{$dlh}} |
@endforeach
{{-- Sum | --}}
@foreach ($lp as $machine_name => $item)
@php
$isR = 0;
@endphp
@foreach ($item as $key => $v)
@php
if(count($item)>1){
$rowSpan = count($item);
$isGenerate = false;
$isR++;
}else{
$rowSpan = '';
$isGenerate = true;
$isR = 0;
}
@endphp
{{-- machine name --}}
@if ($rowSpan>1)
@if ($isR == 1)
| {{$machine_name}} |
@endif
@else
{{$machine_name}} |
@endif
{{-- part name --}}
@foreach ($v as $k => $v2)
{{$k}}
|
@endforeach
@foreach ($shifts as $shift)
@php
$sum1 = 0;
$sum2 = 0;
@endphp
@if ($loop->iteration == 1)
{{$shift->shift_name}} |
Plan
|
@foreach ($v2['from_wip'] as $kp => $dataProcess)
@foreach ($dataProcess as $dp => $dataProc)
@if ($dataProc['shift_id'] === $shift->id)
@php
$sum1 += ($dataProc['qty_plan'] === '-') ? 0 :$dataProc['qty_plan'];
@endphp
{{-- @php
$sum1 = $dataProc['sum_plan'];
@endphp --}}
{{-- | --}}
{{$dataProc['qty_plan']}}
@foreach ($v2['from_oee'][$kp] as $ddp)
{{-- chek dari oee --}}
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_plan']->pivot->quantity}}
@endif
@endforeach
|
@else
@if (count($dataProcess) <= 1)
{{$dataProc['qty_plan']}}
-
@foreach ($v2['from_oee'][$kp] as $ddp)
{{-- chek dari oee --}}
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_plan']}}
@endif
@endforeach
|
@endif
@endif
@endforeach
@endforeach
{{--
{{$sum1 }}
| --}}
|
Actual
|
@foreach ($v2['from_wip'] as $kp =>$dataProcess)
@foreach ($dataProcess as $dp => $dataProc)
@if ($dataProc['shift_id'] === $shift->id)
{{-- --}}
|
{{$dataProc['qty_total']}}
@foreach ($v2['from_oee'][$kp] as $ddp)
{{-- chek dari oee --}}
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_total']}}
@endif
@endforeach
|
@else
@if (count($dataProcess) <= 1)
-
@foreach ($v2['from_oee'][$kp] as $ddp)
{{-- chek dari oee --}}
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_good']}}
@endif
@endforeach
|
@endif
@endif
@endforeach
@endforeach
|
NG
|
@foreach ($v2['from_wip'] as $kp =>$dataProcess)
@foreach ($dataProcess as $dataProc)
@if ($dataProc['shift_id'] === $shift->id)
{{-- --}}
|
{{$dataProc['qty_reject']}}
{{-- chek dari oee --}}
@foreach ($v2['from_oee'][$kp] as $ddp)
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_reject']}}
@endif
@endforeach
|
@else
@if (count($dataProcess) <= 1)
-
@foreach ($v2['from_oee'][$kp] as $ddp)
{{-- chek dari oee --}}
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_reject']}}
@endif
@endforeach
|
@endif
@endif
@endforeach
@endforeach
@else
{{-- SHIFT 2 --}}
| {{$shift->shift_name}} |
Plan
|
@foreach ($v2['from_wip'] as $kp =>$dataProcess)
@foreach ($dataProcess as $dataProc)
@if ($dataProc['shift_id'] === $shift->id)
@php
$sum2 += ($dataProc['qty_plan'] === '-') ? 0 :$dataProc['qty_plan'];
@endphp
{{$dataProc['qty_plan']}}
{{-- chek dari oee --}}
@foreach ($v2['from_oee'][$kp] as $ddp)
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_plan']}}
@endif
@endforeach
|
@else
@php
$sum2 += ($dataProc['plan_all'] === '-') ? 0 :$dataProc['plan_all'];
@endphp
@if (count($dataProcess) <= 1)
{{$dataProc['plan_all']}}
@foreach ($v2['from_oee'][$kp] as $ddp)
{{-- chek dari oee --}}
@if($ddp['shift_id'] === $shift->id)
{{$ddp['qty_plan']}}
@endif
@endforeach
|
@endif
@endif
@endforeach
@endforeach
{{-- {{$sum2}} | --}}
|
Actual
|
@foreach ($v2['from_wip'] as $kp =>$dataProcess)
@foreach ($dataProcess as $dataProc)
@if ($dataProc['shift_id'] === $shift->id)
{{$dataProc['qty_good']}}
{{-- chek dari oee --}}
@foreach ($v2['from_oee'][$kp] as $ddp)
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_good']}}
@endif
@endforeach
|
@else
@if (count($dataProcess) <= 1)
-
@foreach ($v2['from_oee'][$kp] as $ddp)
{{-- chek dari oee --}}
@if($ddp['shift_id'] === $shift->id)
{{$ddp['qty_good']}}
@endif
@endforeach
|
@endif
@endif
@endforeach
@endforeach
|
NG
|
@foreach ($v2['from_wip'] as $kp =>$dataProcess)
@foreach ($dataProcess as $dataProc)
@if ($dataProc['shift_id'] === $shift->id)
{{$dataProc['qty_reject']}}
{{-- chek dari oee --}}
@foreach ($v2['from_oee'][$kp] as $ddp)
@if ($ddp['shift_id'] === $shift->id)
{{$ddp['qty_reject']}}
@endif
@endforeach
|
@else
@if (count($dataProcess) <= 1)
-
@foreach ($v2['from_oee'][$kp] as $ddp)
{{-- chek dari oee --}}
@if($ddp['shift_id'] === $shift->id)
{{$ddp['qty_reject']}}
@endif
@endforeach
|
@endif
@endif
@endforeach
@endforeach
@endif
@endforeach
@endforeach
@endforeach
@endforeach