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

Purchase Orders / PR-{{$pr_id}}

@if(Session::has('success')) @endif @if(Session::has('error')) @endif @foreach($vendors as $list ) @php $po = \App\PurchaseOrder::getStatusOfPurcchaseOrder($pr_id , $list->id); @endphp @endforeach
ID# Vendor Total Item Status Sent date Delivery date Action
PO-{{$po->id}} @permission('view-vendor') {{ucfirst($list->name)}} @else {{ucfirst($list->name)}} @endpermission [ {{\App\PurchaseOrder::getPurchaseOrderTotalItems($po->id , $pr_id)}} ] @if($po->status == 1)
{{ 'PO SENT' }}
@elseif ($po->status == 2)
{{ 'PO RECEIVED' }}
@elseif($po->status == 3)
{{ 'PARTIALLY RECEIVED' }}
@endif
{{date('d-F-Y' , strtotime($po->created_at))}} {{date('d-F-Y' , strtotime($po->delivery_date))}} @permission('list-purchase-order') View @endpermission
@stop @section('js') @stop