@extends(!in_array(\Auth::user()->role, [10, 15]) ? 'layout' : 'layoutfrontdesk') @section('title', 'Purchase Request Form') @section('content')
@csrf @method('PUT')
@if ($check_approve) is_approved_1 ? 'checked' : '' }} {{ !in_array(\Auth::user()->role, [1,2]) ? (\Auth::user()->approve_flag == 1 ? '' : 'disabled') : '' }}> @endif
@php $disabled = $purchase->is_approved_1 ? 'disabled' : ''; @endphp
@if ($purchase->type == 1) @else @endif
@if ($purchase->is_approved_1) @endif
@if ($purchase->is_approved_1) @endif
@if ($purchase->is_approved_1) @endif
{{--
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 @if ($purchase->is_approved_1 == 0) @endif
ArtNoItem Quantity Unit-Price Amount Supplier AccountNo for Inventory Description
{{ @$detail->stock->article_no }} {{ @$detail->stock->description }}
{{ $detail->stock ? @$detail->stock->deliveryUnit->description : ''}}
is_approved_1) readonly @endif/>
@if ($detail->supplier_id2)
is_approved_1) readonly @endif/>
@endif @if ($detail->supplier_id3)
is_approved_1) readonly @endif/>
@endif
@if ($detail->supplier_id2)
@endif @if ($detail->supplier_id3)
@endif
@if ($purchase->is_approved_1) @endif
@if ($purchase->is_approved_1 == 0) @endif
@if ($purchase->is_approved_1 == 0) @endif
@if ($detail->supplier_id2)
@if ($purchase->is_approved_1) @endif
@if ($purchase->is_approved_1 == 0) @endif
@endif @if ($detail->supplier_id3)
@if ($purchase->is_approved_1) @endif
@if ($purchase->is_approved_1 == 0) @endif
@endif
({{ @$detail->coa->account_no }}) {{ @$detail->coa->description }}
{{ @$detail->remark }}
{{date('d-m-Y', strtotime($detail->deliver_date))}} @if ($purchase->is_approved_1 == 0) @endif
Back

Images    @if ($purchase->is_approved_1 == 0) @endif

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