@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($invoices->isNotEmpty()) @foreach($invoices as $invoice) @endforeach
Invoice No Invoice Amount Invoice Date
{{ $invoice->invoice_no }} £{{ $invoice->invoice_amount }} {{ $invoice->invoice_date->format('d-m-Y') }}
@endif @if($orders->isNotEmpty()) @foreach($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