@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Purchase Request Form') @section('content')
@csrf @method('PUT')
is_approved_1 ? 'checked' : '' }} {{ in_array(\Auth::user()->role, [1,2]) ? (\Auth::user()->approve_flag == 1 ? '' : 'disabled') : '' }}>
{{--
is_approved_1 ? 'checked' : '' }} {{ \Auth::user()->user_level != 1 ? 'disabled' : ''}}>
is_approved_2 ? 'checked' : '' }} {{ \Auth::user()->user_level != 2 ? 'disabled' : ''}}>
is_approved_3 ? 'checked' : '' }} {{ \Auth::user()->user_level != 3 ? 'disabled' : ''}}>
is_approved_4 ? 'checked' : '' }} {{ \Auth::user()->user_level != 4 ? 'disabled' : ''}}>
--}}
{{-- --}} @foreach ($purchase->purchaseRequestDetail as $key => $detail) {{-- --}} @endforeach
ArtNoItem Quantity D-Unit D-Content AcctNo Description Deliver Date
{{ @$detail->stock->article_no }} {{ @$detail->stock->description }} {{ ribuan(@$detail->qty) }} {{ @$detail->stock->deliveryUnit->description }} {{@$detail->stock->content_delivery_unit ? ribuanDuaAngkaBelakangKomaIndo(@$detail->stock->content_delivery_unit) : ''}} {{ @$detail->coa->account_no }}
{{ @$detail->remark }}
{{date('d-m-Y', strtotime($detail->deliver_date))}}
Back

Images   

@if (count($purchase->purchaseRequestImages)>0) @foreach ($purchase->purchaseRequestImages as $key => $img)
Preview @if(in_array(\Auth::user()->role, [1])) @endif
File
@endforeach @endif
@endsection @section('js') @endsection