@extends('layouts.admin') @section('content') @include('include.datatable-css')
@include('include.flash-message')

@foreach ($list['summary'] as $x) @endforeach
{{ $x['package_type_title'] }}    {{ $x['total_tiffins'] }} @foreach ($x['items'] as $k => $v) @if ($v > 0) @endif @endforeach
Item Quantity
{{ getItemName($k) }} {{ $v }}
{{-- Intentionally left blank. --}}
Total tiffins = {{ $list['total_tiffins'] }}
@foreach ($list['individual'] as $ind) @endforeach
Account ID Customer Package Type Package Items Add-ons Net Items Address
{{ $ind['account_id']}} {{ $ind['user_fullname']}} {{ $ind['package_type_title']}} {{ $ind['package_title']}} @if (is_countable($ind['items'])) @foreach ($ind['items'] as $it) @endforeach
{{ getItemName($it['item']) }} {{ $it['quantity'] }}
@endif
@if (is_countable($ind['add_ons'])) @foreach ($ind['add_ons'] as $addon) @endforeach @if ($ind['items_count'] > $ind['add_ons_count']) @while ($ind['items_add_ons_count_difference']--) @endwhile @endif
{{ getItemName($addon['item']) }} {{ $addon['qty'] }}
 
@endif
@if (is_countable($ind['net_items'])) @foreach ($ind['net_items'] as $k => $v) @endforeach
{{ getItemName($k) }} {{ $v }}
@endif
{{ $ind['address']}}
@endsection