@php use App\Models\ParameterDetail; @endphp @extends('layouts.backend.index') @section('title', $label) @section('content')

{{ $workorder->number }}


Tanggal : {{ Common::dateFormat($workorder->setdate, 'dd mmmm yyyy') }}
Nama Pelanggan : {{ $workorder->sales->customer->name }}
Alamat Pelanggan : {{ $workorder->sales->customer->address }}
Jumlah : {{ number_format($workorder->sales->amount, 0, '', '.') . ' Lembar' }}
Tipe Bahan yang Dikerjakan
{{ $workorder->sales->material->name }}
{{ $workorder->sales->material_descr }}
Pekerjaan
@php $works = json_decode($workorder->work); $no = 1; @endphp @foreach ($works as $w) @php $work = ParameterDetail::select('name')->where('id', $w->id)->first(); @endphp @php $no++; @endphp @endforeach
No Jenis Pekerjaan Keterangan Qty Harga Total
{{ $no }} {{ $work->name }} {{ $w->descr }} {{ number_format($w->qty, 0, '', '.') }} {{ number_format($w->price, 0, '', '.') }} {{ number_format($w->total, 0, '', '.') }}
Sub Total {{ number_format($workorder->subtotal, 0, '', '.') }}
PPN ({{ $ppn_percent }}%) {{ number_format($workorder->ppn, 0, '', '.') }}
PPH ({{ $pph_percent }}%) {{ number_format($workorder->pph, 0, '', '.') }}
Total {{ number_format($workorder->total, 0, '', '.') }}
@csrf
Items
@php $no = 1; @endphp @foreach ($items as $i) @php $no++; @endphp @endforeach
No Material Tipe Jenis Jumlah Jumlah Dipakai
{{ $no }} {{ $i['name'] }} {{ $i['type'] }} {{ $i['category'] }} {{ number_format($i['qty'], 0, '', '.') }}

Diterima oleh
{{ $workorder->receivePerson->name }}
Pada Tgl. {{ Common::dateFormat($workorder->receive_date, 'dd mmmm yyyy') }}
Dikerjakan oleh
{{ $workers }}
Pada Tgl. {{ Common::dateFormat($workorder->work_date, 'dd mmmm yyyy') }}
Diperiksa oleh
{{ $workorder->examPerson->name }}
Pada Tgl. {{ Common::dateFormat($workorder->exam_date, 'dd mmmm yyyy') }}

@endsection @push('scripts') @endpush