@extends('layouts.admin') @section('content')
@isset($date) {{$date->label}} @endisset
@php $total_tiffins = 0; @endphp @if (count($packages)) @foreach ($packages as $item) @php $total_tiffins += $item->qty; @endphp @endforeach
{{ $item->package_type }} {{ $item->label }} {{ $item->qty }}
Total {{$total_tiffins}}
@endif
@php $totalRotis=0; @endphp @if (count($rotis)) @foreach ($rotis as $item) @endforeach
{{ $item->label }} {{ $item->qty }} {{ $item->unit }} @php $count=$item->qty*$item->unit; $totalRotis= $totalRotis+$count; @endphp {{ $item->qty*$item->unit }}
Total rotis {{ $totalRotis }}
@endif
@php $totalPri=0; @endphp @if (count($primaryVeg)) @foreach ($primaryVeg as $v) @php $totalPri=$totalPri+$v->qty; @endphp @endforeach @endif
Primary Veg {{ $v->label }} {{ $v->qty }}
Total {{$totalPri}}
@php $totalSec=0; @endphp @if (count($secondaryVeg)) @foreach ($secondaryVeg as $v) @php $totalSec=$totalSec+$v->qty; @endphp @endforeach @endif
Secondary Veg {{ $v->label }} {{ $v->qty }}
Total {{$totalSec}}
@if (count($rice)) @php $totalRic=0; @endphp @foreach ($rice as $v) @php $totalRic=$totalRic+$v->qty; @endphp @endforeach @endif
Rice {{ $v->label }} {{ $v->qty }}
Total {{$totalRic}}
@endsection