@php use App\Models\ParameterDetail; @endphp WORK ORDER #{{ $workorder->number }}

{{ Auth::user()->entity->name }}

{{ Auth::user()->entity->address . ' / ' . Common::phoneFormat(Auth::user()->entity->phone) }}
 
WORK ORDER
 
Kepada YTH,
{{ $workorder->sales->customer->name }}

{{ $workorder->sales->customer->address }}
No. Order {{ $workorder->number }}
Tgl. Mulai {{ Common::dateFormat($workorder->setdate, 'dd / mm / yyyy') }}
Tgl. Selesai {{ (empty($workorder->finished_at)) ? '-' : Common::dateFormat($workorder->finished_at, 'dd / mm / yyyy') }}
Jumlah {{ number_format($workorder->sales->amount, 0, '', '.') . ' Lembar' }}
Tipe Bahan untuk dikerjakan : {{ $workorder->sales->material->name }}
{{ $workorder->sales->material_descr }}
@php $no = 1; $class = ''; $items = json_decode($workorder->work); @endphp @foreach ($items as $i) @php $work = ParameterDetail::select('name')->where('id', $i->id)->first(); @endphp @php $class = (empty($class)) ? 'gray' : ''; $no++; @endphp @endforeach
No Jenis Pekerjaan Keterangan Qty
{{ $no }} {{ $work->name }} {{ $i->descr }} {{ number_format($i->qty, 0, '', '.') }}
DO PT ESM No. : ...................................
Tanggal {{ Common::dateFormat($workorder->receive_date, 'dd/mm/yyyy') }}
Diterima Oleh,




{{ $workorder->receivePerson->name }}
Tanggal {{ Common::dateFormat($workorder->work_date, 'dd/mm/yyyy') }}
Dikerjakan Oleh,




{{ $worker->name }}
Tanggal {{ Common::dateFormat($workorder->exam_date, 'dd/mm/yyyy') }}
Diperiksa Oleh,




{{ $workorder->examPerson->name }}