@extends('layouts.admin') @section('title', 'Order') @section('content')

Orders

All Orders listing

@if (Session::has('message'))
{{ Session::get('message') }}
@endif @foreach($data as $datas) @php $caterer=DB::table('caterers')->where('id',$datas->caterer_id)->first(); $user=DB::table('users')->where('id',$datas->customer_id)->first(); $order_items_count=DB::table('order_items')->where('order_id',$datas->id)->count(); @endphp @endforeach
ID Invoice Code Caterer Name Customer Payment Type Invoice Date No Of Products Order Status Action
{{$datas->id}} {{$datas->invoice_id}} {{$caterer->name}} {{$user->first_name}} {{$user->last_name}} {{$datas->payment_type}} {{$datas->invoice_date}} {{$order_items_count}} {{$datas->order_status}}
ID Invoice Code Caterer Name Customer Payment Type Invoice Date No Of Products Order Status Action
@endsection