@foreach($suppliers as $supplier) @php if($supplier->product_count == 0) continue; @endphp
@php $supplierCategories = array(); @endphp @foreach($supplier->products->sortBy("category")->sortBy("product_id") as $item) @if(!isset($supplierCategories[$item->category])) @php $supplierCategories[$item->category] = TRUE; @endphp @endif @php if($item) { $name = str_replace("Waterloo Cottage Farm - ", "", $item->product_name); $name = str_replace("Waterloo Cottage Farm", "", $name); $name = str_replace($supplier->name, "", $name); $name = str_replace("Whissendine Windmill Plain Stoneground", "", $name); $name = str_replace("Cranberry and Free Range ", "", $name); $name = str_replace("Free Range,", "", $name); $name = str_replace("Gluten Free", "(GF)", $name); $name = str_replace("Pasture Fed", "", $name); $name = str_replace("Dry Cured,", "", $name); $name = str_replace("Slow Grown", "", $name); $name = str_replace("Cranberry and Free Range ", "", $name); $name = str_replace("Pasture fed", "", $name); $name = str_replace("Dry Cured", "", $name); $name = str_replace("28 Day Matured", "", $name); $name = str_replace("Aged", "", $name); $name = str_replace("Organic", "", $name); $name = str_replace(",", "", $name); $name = str_replace(" ", "", $name); $item->product_name = $name; } if($item->item_name) { $name = str_replace("Waterloo Cottage Farm - ", "", $item->item_name); $name = str_replace("Waterloo Cottage Farm", "", $name); $name = str_replace($supplier->name, "", $name); $name = str_replace("Whissendine Windmill Plain Stoneground", "", $name); $name = str_replace("Cranberry and Free Range ", "", $name); $name = str_replace("Free Range,", "", $name); $name = str_replace("Gluten Free", "(GF)", $name); $name = str_replace("Pasture Fed", "", $name); $name = str_replace("Dry Cured,", "", $name); $name = str_replace("Slow Grown", "", $name); $name = str_replace("Cranberry and Free Range ", "", $name); $name = str_replace("Pasture fed", "", $name); $name = str_replace("Dry Cured", "", $name); $name = str_replace("28 Day Matured", "", $name); $name = str_replace("Aged", "", $name); $name = str_replace("Organic", "", $name); $name = str_replace(",", "", $name); $name = str_replace(" ", "", $name); $item->item_name = $name; } @endphp @endforeach

Purchase Order

@if(isset($supplier->CollectionTime))

{{App\Http\Controllers\Admin\OrdersController::getCollectTime($supplier->CollectionTime)}}

@endif

{{$supplier->name}}


Created: {{Carbon\Carbon::now()->format('l jS F Y')}}
Edible16
34 Harborough Rd,
Great Oxendon,
Market Harborough
LE16 8NA

Issued to:

{{$supplier->name}}
@if($supplier->address_1) {{$supplier->address_1}} @endif @if($supplier->address_2) {{$supplier->address_2}} @endif @if($supplier->address_3) {{$supplier->address_3}} @endif @if($supplier->city) {{$supplier->city}} @endif @if($supplier->county) {{$supplier->county}} @endif @if($supplier->postcode) {{$supplier->postcode}} @endif
 
Category Product Item Unit Price Quantity Owed
{{$item->category}}
{{$item->category}} @php if($item) { echo($item->product_name); } @endphp @php if($item->item_name) { echo($item->item_name); } else {echo 'N/A';} @endphp £{{ number_format($item->price, 2)}} {{ $item->quantity}} £{{ number_format($item->owed, 2)}}
 
Total Products:
{{$supplier->product_count}}
Total Owed:
Based on {{$supplier->fee_percentage}}% Markup

£{{ number_format($supplier->totalowed, 2)}}

Notice to all suppliers

This is your order for MINonlyne/Edible16 to be delivered before 09:00 this Friday coming.
All products must be delivered to Waterloo Cottage Farm, 34 Harborough Road, Great Oxendon, LE16 8NA.
Please can you confirm receipt of this email as soon as you can by emailing: manager@edible16.org.uk.
If you have any questions please call us on: 07956 008370
@if(count($suppliers)>1 && $loop->last == FALSE)
@endif @endforeach