@extends('layouts.master') @section('page_title', 'Orders Details') @section('title', 'Orders Details') @section('main_item', 'Orders') @section('sub_item', 'Orders Details') @section('content')

Filter

Reset
@if ($setting->oder_list_add_button == '1')     @endif

Sales Details

Download Excel
@foreach ($sales as $sale) @endforeach
Action Call Status Delivery Status Customer Order ID Waybill No Courier Grand Total Sale Date
@php $city = App\City::where('id', $sale->customer->city)->first(); @endphp @if ($sale->call_status == 'pending') Pending @elseif ($sale->call_status == 'confirm') Confirm @elseif ($sale->call_status == 'not_confirm') Not Confirm @elseif ($sale->call_status == 'cancel') Cancel Order @elseif ($sale->call_status == 'hold_oders') Hold Order @else Not Available @endif @can('call_list') @if ($sale->call_status != 'cancel') @endif @endcan @if ($sale->status == 'pending') Pending @elseif ($sale->status == 'dispatched') Dispatched @elseif ($sale->status == 'returned') Returned @elseif ($sale->status == 'delivered') Delivered @elseif ($sale->status == 'canceled') Canceled @elseif ($sale->status == 'reshedule') Reshedule @elseif ($sale->status == 'reshedule_diliverd') Reshedule & Diliverd @elseif ($sale->status == 'packing') Packing @elseif ($sale->status == 'in_transit') @if($sale->packet_status == 'packed') Packet @else Packing @endif @else N/A @endif @can('dilivery_status_access') @if ($sale->status != 'returned') @if ($sale->status != 'canceled' && $sale->status != 'delivered') @endif @else @php // $sale_return = SaleReturn::where('sale_id', $sale->id)->first(); @endphp {{-- {{ $sale_return->refund_type }} --}} @endif @endcan {{ $sale->customer->name }}
{{ $sale->customer->mobile }}
@if (!empty($sale->invoice_no)) {{ $sale->invoice_no }} @else N/A @endif @if (!empty($sale->waybill_no)) {{ $sale->waybill_prefix . $sale->waybill_no . $sale->waybill_postfix }} @else @if ($sale->full_waybill_no) {{ $sale->full_waybill_no }} @else N/A @endif @endif {{ $sale->couriers->name }} {{ number_format($sale->invoice_nettotal, 2) }} {{ Carbon\Carbon::parse($sale->sale_date)->toDateString() }}
{{ $sales->appends($_GET)->links() }}
@php $count = $sales->count(); @endphp

Total Count   {{ $count }}

@csrf
@include('sale.bulk-status-update') @endsection @section('scripts') @endsection