@extends('mrp') @section('title', $page_title) @section('content')
{{--
--}}
@csrf

Report Details

{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
Nama Proses : {{$production->production_name}} CHECK SHEET No.Dokumen : {{$production->production_code}} PLAN MengetahuiDiperiksaDibuat Bulan Produksi
No Proses : Tgl Pembuatan :
Nama Mesin : PLANNING PRODUCTION No.Revisi : 00
No Mesin : Tgl Revisi : RESULT
Nama Part : Halaman : Tgl : {!! $date !!} Rev : 00
No Part : ALL MODELDepartemen : Produksi Division Head Dept.Head
@foreach ($list_process as $process_name => $lp) @foreach ($date_list_header as $key => $dlh) @endforeach @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) @endif @else @endif {{-- part name --}} @foreach ($v as $k => $v2) @endforeach @foreach ($shifts as $shift) @php $sum1 = 0; $sum2 = 0; @endphp @if ($loop->iteration == 1) @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 --}} @else @if (count($dataProcess) <= 1) @endif @endif @endforeach @endforeach @else {{-- SHIFT 2 --}}
@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 @else @php $sum2 += ($dataProc['plan_all'] === '-') ? 0 :$dataProc['plan_all']; @endphp @if (count($dataProcess) <= 1) @endif @endif @endforeach @endforeach @endif @endforeach @endforeach @endforeach
No {{$process_name}} Item{{$dlh}}Sum
{{$machine_name}}{{$machine_name}} {{$k}} {{$shift->shift_name}} Plan {{-- --}} {{$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 {{$dataProc['qty_plan']}} - @foreach ($v2['from_oee'][$kp] as $ddp) {{-- chek dari oee --}} @if ($ddp['shift_id'] === $shift->id) {{$ddp['qty_plan']}} @endif @endforeach {{$sum1 }}
{{$shift->shift_name}} Plan {{$dataProc['qty_plan']}} {{-- chek dari oee --}} @foreach ($v2['from_oee'][$kp] as $ddp) @if ($ddp['shift_id'] === $shift->id) {{$ddp['qty_plan']}} @endif @endforeach {{$dataProc['plan_all']}} @foreach ($v2['from_oee'][$kp] as $ddp) {{-- chek dari oee --}} @if($ddp['shift_id'] === $shift->id) {{$ddp['qty_plan']}} @endif @endforeach {{$sum2}}
@endforeach
{{--
--}}
@endsection @push('css') @endpush @push('js') {{-- DOM TO PDF --}} @endpush