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

Customer Orders

All Orders of : {{ucfirst($user->first_name)}} {{ucfirst($user->last_name)}}

@if (Session::has('message'))
{{ Session::get('message') }}
@endif @php $a= 1; @endphp @foreach($data as $datas) @php $costing = DB::table('order_items')->where('order_id',$datas->id)->sum('total_price'); $caterer = DB::table('caterers')->where('id',$datas->caterer_id)->first(); @endphp @php $a= 1; @endphp @endforeach
ID Invoice No Invoice Date Caterer Payment Type Order Status Order Total
{{$a}} {{$datas->invoice_id}} {{$datas->invoice_date}} {{$caterer->name}} {{$datas->payment_type}} {{$datas->order_status}} {{$costing}}
ID Invoice No Invoice Date Caterer Payment Type Order Status Order Total
@endsection