@php $menuperm = Illuminate\Support\Facades\Session::get('menu_perm') ?? []; $roleperm = Illuminate\Support\Facades\Session::get('role_perm') ?? []; @endphp @extends('layouts.master') @section('content')
ใบสั่งซื้อ
@if (in_array(8,$menuperm )) @if (in_array(20,$roleperm) ) @if (in_array(1,$roleperm)) @endif @else @endif @endif

{{-- --}} @foreach ($HD as $key => $item) {{-- --}} @endforeach
ลำดับ เลขที่เอกสาร เลขที่ใบสั่งซื้อ วันที่เอกสาร ผู้จัดจำหน่าย รวมทั้งสิ้น สถานะเอกสาร ผู้แก้ไขล่าสุด เวลาแก้ไขล่าสุด แก้ไข PDFใบรับของ
{{$key += 1}} {{$item->XVPohDocNo}} {{$item->XVPohRefNo}} {{date_YmdTodmY($item->XDPohDocDate)}} {{$item->XVSplName}} {{number_format($item->XFPohNet,2)}} {{getDocStatusByCode($item->XVPohDocStatus)}} @if($item->XBPohIsRefered) ( รับของแล้ว ) @endif {{$item->XVWhoEdit}} {{$item->XTWhenEdit}} @if($bFilter ?? false) @else @endif {{-- @if($item->XVPohDocStatus == "3") --}} {{-- @endif --}} @if($item->XVPohDocStatus == "3") @endif
@endsection