@extends('layouts.admin-master') @section('title', Request::get('status') ? ucwords(Request::get('status')) .' order report-('. Carbon\Carbon::parse(now())->format('d-M-Y').')' : 'Order report-('. Carbon\Carbon::parse(now())->format('d-M-Y').')') @section('css') @endsection @section('content')

Order Report

@if(Route::current()->getName() == 'order.search') Total Record: ({{count($orders)}}) @endif

@if(count($orders)>0) @foreach($orders as $index => $order) order_status == 'cancel') style="background:#ff000026" @endif> @endforeach @else @endif
# Order ID Date Product Name Customer Name Mobile Qty Price Payment Status Status
{{ $index+1 }} {{$order->order_id}} @if(Auth::guard('admin')->user()->email == 'neyamulkn2@gmail.com')
Add Voucher @endif
{{\Carbon\Carbon::parse($order->order_date)->format('d-M-Y')}} @foreach($order->order_details as $item) @if($item->product) {{Str::limit($item->product->title, 80)}}
@else

Product not found.

@endif @if(isset($item->attributes)) @foreach(json_decode($item->attributes) as $key=>$value) {{$key}} : {{$value}} @endforeach @endif @endforeach
{{ $order->customer_name }} {{ ($order->billing_phone) ? $order->billing_phone : $order->shipping_phone }} {{$order->total_qty}} {{($order->total_price + $order->shipping_cost - $order->coupon_discount) }} {{$order->payment_status}} @if($order->order_status == 'delivered') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'accepted') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'ready-to-ship') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'cancel') {{ str_replace('-', ' ', $order->order_status)}} @elseif($order->order_status == 'on-delivery') {{ str_replace('-', ' ', $order->order_status)}} @else Pending @endif

No orders found.

{{$orders->appends(request()->query())->links()}}
Showing {{ $orders->firstItem() }} to {{ $orders->lastItem() }} of total {{$orders->total()}} entries ({{$orders->lastPage()}} Pages)
@endsection @section('js') @endsection