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

Manage Purchase Orders

{{ Form::open(['route' => ['purchase.orders.update', $purchase->id], 'method' => 'patch', 'enctype'=> 'multipart/form-data']) }}

Edit Purchase Order

Company :Design Rationale Ltd
Phone : 01707 272771
Address : : 4 Bury Road, Hatfield, Hertfordshire, AL10 8BJ
Supplier : {{ $purchase->supplier->secud_fname }}
Phone : {{ $purchase->supplier->secud_mobile }}
Address : {{ $purchase->supplier->secud_address }} {!! $purchase->supplier->secud_address1 ? ', '.$purchase->supplier->secud_address1 : '' !!} {!! $purchase->supplier->secud_suburb ? ', '.$purchase->supplier->secud_suburb : '' !!} {!! $purchase->supplier->secud_postcode ? ', '.$purchase->supplier->secud_postcode : '' !!}
Project Code : {{ $purchase->project->unique_reference_no }}
Area: {{ $purchase->mainActivity->area }} Level: {{ $purchase->mainActivity->level }} Sub Code: {{ $purchase->subActivity->sub_code }}
* @if($errors->has('delivery_date')) {{ $errors->first('delivery_date') }} @endif
* @if($errors->has('delivery_time')) {{ $errors->first('delivery_time') }} @endif
* @if($errors->has('delivery_address')) {{ $errors->first('delivery_address') }} @endif
@if($purchase->invoices->isNotEmpty()) @foreach($purchase->invoices as $invoice) @endforeach @endif
Invoice No Invoice Amount Invoice File Invoice Date +
x

@if($certificate_po->isNotEmpty()) @foreach($certificate_po as $cert) @endforeach @endif
Certificate

+

X

@if($purchase_deliverynote->isNotEmpty()) @foreach($purchase_deliverynote as $note) @endforeach @endif
Delivery note

+

X

@php $grand_total = 0; @endphp @if($purchase->orders->isNotEmpty()) @foreach($purchase->orders as $order) @php $grand_total = $grand_total + ($order->quantity*$order->rate); @endphp @endforeach @endif @if($unselectedActivities->isNotEmpty()) @foreach($unselectedActivities as $activity) @endforeach @endif @php $grand_total = $grand_total + $purchase->carriage_costs + $purchase->c_of_c + $purchase->other_costs; @endphp
Activity Code Activity Image Unit Quantity Rate Total
{{ $order->activityOfOrder->item_code }}
@if($errors->has('activities.*.activity')) {{ $errors->first('activities.*.activity') }} @endif
@if($errors->has('activities.*.unit')) {{ $errors->first('activities.*.unit') }} @endif
@if($errors->has('activities.*.quantity')) {{ $errors->first('activities.*.quantity') }} @endif
@if($errors->has('activities.*.rate')) {{ $errors->first('activities.*.rate') }} @endif
@if($errors->has('activities.*.total')) {{ $errors->first('activities.*.total') }} @endif
{{ $activity->item_code }}
@if($errors->has('activities.*.activity')) {{ $errors->first('activities.*.activity') }} @endif
@if($errors->has('activities.*.unit')) {{ $errors->first('activities.*.unit') }} @endif
@if($errors->has('activities.*.quantity')) {{ $errors->first('activities.*.quantity') }} @endif
@if($errors->has('activities.*.rate')) {{ $errors->first('activities.*.rate') }} @endif
@if($errors->has('activities.*.total')) {{ $errors->first('activities.*.total') }} @endif
  Carriage costs
@if($errors->has('carriage_costs')) {{ $errors->first('carriage_costs') }} @endif
  C of C
@if($errors->has('c_of_c')) {{ $errors->first('c_of_c') }} @endif
  Other costs
@if($errors->has('other_costs')) {{ $errors->first('other_costs') }} @endif
  Total Value
@if($errors->has('grand_total')) {{ $errors->first('grand_total') }} @endif
{{ Form::close() }}
@stop @push('scripts') @endpush