@extends('admin.layout.app') @section('content') @php $all_market = \DB::table('business')->where('status',1)->orderBy('name','asc')->get(); @endphp

@if(@$_GET['filter_by'] !='') ALL @else Today @endif Pending Orders

@if(Session::has('message'))

{{ Session::get('message') }}

@endif @if(@$_GET['filter_by'] !='notification') @if(@$_GET['filter_by'] =='tyro') @endif @if(@$_GET['filter_by'] =='tyro') @endif @else @endif @foreach($orders as $key=>$order) @php $startTime = \Carbon\Carbon::parse($order->created_at); $finishTime = \Carbon\Carbon::parse(date('Y-m-d H:i:s')); $totalDuration = $finishTime->diffInSeconds($startTime); $customer_name = \DB::table('users')->where('id',$order->user)->first(); @endphp @if(@$_GET['filter_by'] !='notification') @if($order->order_delivery_date_time !=0) @else @if($order->status==1) @if($totalDuration > 600) @else @endif @elseif($order->status==2) @elseif($order->status==3) @else @endif @endif @if(@$_GET['filter_by'] =='tyro') @endif @if($order->order_delivery_date_time !=0) @else @endif @if(@$_GET['filter_by'] =='tyro') @endif @else @endif @endforeach
S No. OrderIdTyro Payment StatusRest.Name Cust.Name Created Date Updated Date Later Delivery Order Total Mathod PlatForm Order Type StatusActive
S No. OrderId Notify Status Cust.Name PlatForm Status
{{@$key+1}} {{@$order->id}}{{@$order->tyro_payment_status}}{{@$order->rest_name}} {{@$customer_name->name}} {{date('d-M-Y H:i',strtotime($order->created_at))}} {{date('d-M-Y H:i',strtotime($order->updated_at))}}{{date('d-M-Y H:i',strtotime($order->order_delivery_date_time))}}NA${{@$order->total}} {{@$order->method}} {{@$order->order_type}} {{@$order->sub_order_type}} {{@$order->status_name}}Push to POS
{{@$key+1}} {{@$order->id}} {{@$order->is_notify==0?'No':'Yes'}} {{@$customer_name->name}} {{@$order->order_type}} {{@$order->status_name}}
@endsection