@extends('layouts.app') @section('title') Purchase Order @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Purchase Orders

@if(Session::has('success')) @endif @if(Session::has('error')) @endif @foreach($total_purchase_orders as $pr ) @foreach($pr->purchase_orders as $list ) @php $vendor = \App\PurchaseRequestVendor::find($list->vendor_id); @endphp @endforeach @endforeach
ID# Vendor Receive By Total Item Status Sent date Delivery date Action
PO-{{$list->id}} @permission('view-vendor') {{ucfirst($vendor->name)}} @else {{ucfirst($vendor->name)}} @endpermission @if(!empty($list->receiver_name))
{{ucfirst($list->receiver_name)}}
{{date('d-F-Y' , strtotime($list->receiving_date))}} @else {{'Not Yet Receive'}} @endif
[ {{\App\PurchaseOrder::getPurchaseOrderTotalItems($list->id , $list->purchase_request_id)}} ] @if($list->status == 1)
{{ 'PO SENT' }}
@elseif ($list->status == 2)
{{ 'PO RECEIVED' }}
@elseif($list->status == 3)
{{ 'PARTIALLY RECEIVED' }}
@endif
{{date('d-F-Y' , strtotime($list->created_at))}} {{date('d-F-Y' , strtotime($list->delivery_date))}} @permission('view-purchase-order') View @endpermission @if($list->status == 1) @permission('delete-purchase-order') Cancel @endpermission @endif
@stop @section('js') @stop