@extends('user::layouts.master') @section('content')

Manage Purchase Orders

Purchase Order

Company :{{ @$purchase->project->company->company_name }}
Phone : {{ @$purchase->project->company->phone }}
Address : : {{ @$purchase->project->company->address_line1 }}, {{ @$purchase->project->company->address_line2 }}
Supplier : {{ @$purchase->supplier->supplier_name }}
Phone : {{ @$purchase->supplier->phone }}
Address : {{ @$purchase->supplier->address_line1 }} {!! @$purchase->supplier->address_line2 ? ', '.@$purchase->supplier->address_line2 : '' !!} {!! @$purchase->supplier->suburb ? ', '.@$purchase->supplier->suburb : '' !!} {!! @$purchase->supplier->postcode ? ', '.@$purchase->supplier->postcode : '' !!}
Project Code : {{ @$purchase->project->unique_reference_no }}
Delivery Date: {{ $purchase->delivery_date->format('d-m-Y') }} Delivery Time: {{ $purchase->delivery_time }} Delivery Address: {{ $purchase->delivery_address }}
Area: {{ $purchase->mainActivity->area }} Level: {{ $purchase->mainActivity->level }} Sub Code: {{ $purchase->subActivity->sub_code }}
@if($purchase->invoices->isNotEmpty()) @foreach($purchase->invoices as $invoice) @endforeach
Invoice No Invoice Amount Invoice File Invoice Date Approval
{{ $invoice->invoice_no }} £{{ $invoice->invoice_amount }} {{ $invoice->invoice_date->format('d-m-Y') }}
@if(auth::user()->isRole('Super Admin') || auth::user()->isRole('Admin') || auth::user()->isRole('Project Manager') || auth::user()->isRole('Project Manager')) approver) checked @endif /> @endif @if($invoice->approver) By {{ $invoice->approver->secud_fname }}({{ $invoice->approver->roles->first()->name }}) @endif
@endif
@if($certificate_po->isNotEmpty()) @foreach($certificate_po as $cert) @endforeach @endif
Certificate

@if($purchase_deliverynote->isNotEmpty()) @foreach($purchase_deliverynote as $note) @endforeach @endif
Delivery note
@if($purchase->orders->isNotEmpty()) @foreach($purchase->orders as $order) @endforeach @endif
Activity Code Activity Image Unit Quantity Rate Total
{{ $order->activityOfOrder->item_code }} {{ $order->activity }} @if(\Storage::disk('public')->has('purchases/'.$order->photo)) @else @endif {{ $order->unit }} {{ $order->quantity }} £{{ $order->rate }} £{{ $order->total }}
  Carriage costs £{{ $purchase->carriage_costs }}
  C of C £{{ $purchase->c_of_c }}
  Other costs £{{ $purchase->other_costs }}
  Total Value £{{ $purchase->grand_total }}
Note: {{ $purchase->notes }}
@stop @push('scripts') @endpush