@extends('layouts.caterer') @section('title', 'Category') @section('content')

Order Detail


@if (Session::has('message'))
{{ Session::get('message') }}
@endif
{{$data->invoice_id}}
{{date('Y-m-d',strtotime($data->invoice_date))}}

Name : {{$user->first_name}} {{$user->last_name}}
Mobile : {{$user->phone}}


{{$area->name}}
{{$data->building_type}}
{{$area->name}}
{{$data->address}}
{{$data->street}}
{{$data->building_no}}

{{$caterer->name}}
{{$catererUser->phone}}
{{$catererUser->email}}


{{$catererUser->address}}


@csrf
@php $a=1; $caterer_item_meal_types = []; @endphp @foreach($orderItem as $orderItems) @php $caterer_items=DB::table('caterer_items')->where('id',$orderItems->item_id)->first(); $caterer_item_meal_types = DB::table('caterer_item_meal_types')->where('caterer_item_id',$caterer_items->id)->whereNull('deleted_at')->get(); @endphp @php $a++; @endphp @endforeach
No Product Name Quantity Date Special Instruction Selected Meals Cost
{{$a}} {{$caterer_items->item_name}} {{$orderItems->quantity}} {{date('Y-m-d',strtotime($orderItems->created_at))}} {{$orderItems->special_instruction}} @foreach($caterer_item_meal_types as $caterer_item_meal_type) @php $meal_type=DB::table('meal_types')->where('id',$caterer_item_meal_type->meal_type_id)->first(); echo $meal_type->title.'='.$caterer_item_meal_type->data.' nos'.'
'; @endphp @endforeach
{{$orderItems->quantity}}* {{$orderItems->total_price}}/- = KD 0/-
@endsection