@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 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) @else Product not found. @endif @if($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. | |||||||||