@extends('pages.admin.layout') @section('content') @php $now = \Carbon\Carbon::now(); if($now->format('l') !== "Tuesday") $now = \Carbon\Carbon::parse('next tuesday'); $orderavailability = App\OrderAvailablity::where("week_year", $now->weekOfYear.$now->year)->first(); $localField = Request::get('orderArea') ?? 'IsEdible'; @endphp
@if(isset($message) && $message != null)
{{$message}}
@endif @foreach($weeks as $slot) @endforeach
Week Orders Total (Exc Del) Profit Delivery Cost
{{$slot->title}} @if($orderavailability->id == $slot->id) Current Week @endif
{{$slot->details->totalsowed->count}} £{{number_format(($slot->details->totalsowed->income),2)}} £{{number_format(($slot->details->totalsowed->income - $slot->details->totalsowed->suppliers),2)}} £{{number_format($slot->details->totalsowed->delivery,2)}}
@endsection @section('scripts') @endsection