@extends('admin.layouts.dashboard') @section('style') @endsection @section('content')
| Order Id | {{ $order->order_no }} | Transaction Id | {{ $order->transaction }} | ||
| Customer Name | {{ $order->shipping ? $order->shipping->firstname : '-' }} | {{ $order->shipping ? $order->shipping->email : '-' }} | |||
| Phone No. | {{ $order->shipping ? $order->shipping->phone : '-' }} | Shipping Address | @if(!empty($order->shipping)) {{ $order->shipping->address ?? '' }}, {{ $order->shipping->city ?? '' }}, {{ $order->shipping->state ?? '' }}, {{ $order->shipping->country ?? '' }}, {{ $order->shipping->pincode ?? '' }} @else N/A @endif | ||
| Order Date | {{ !empty($order->created_at) ? \Carbon\Carbon::parse($order->created_at)->format('d-m-Y') : '-' }} | {{--Payment Status | {{ !empty($order->status) ? $order->status : '-' }} | --}}Billing Address | @if(!empty($order->billing)) {{ $order->billing->address }}, {{ $order->billing->city }}, {{ $order->billing->state }}, {{ $order->billing->country }}, {{ $order->billing->pincode }} @else N/A @endif |
| Payment Mode | {{ !empty($order->payment_type) ? $order->payment_type : '-' }} | Payment Status |
@if($order->is_paid && $order->payment_by == null)
Paid
@elseif($order->is_paid && $order->payment_by == '0')
Paid By Cash
@elseif($order->is_paid && $order->payment_by == '1')
Paid By Admin
@elseif($order->is_paid && $order->payment_by == '2')
Paid By Customer
{{-- {{ $order->payment_type }}
--}}
@else
@if($order->status === \App\Models\Order::ORDER_PENDING)
Pending
@elseif($order->status === \App\Models\Order::ORDER_CANCELLED)
Cancelled
@elseif($order->status === \App\Models\Order::ORDER_FAILED)
Failed
@endif
@endif
|
||
| Order Status | @if($order->order_status == '0') Pending @elseif($order->order_status == '1') Confirmed @elseif($order->order_status == '9') Cancelled @elseif($order->order_status == '2') Dispatched @elseif($order->order_status == '3') Delivered @elseif($order->order_status == '4') Return @elseif($order->order_status == '5') Returned @endif | Confirmation |
| Sno. | Image | Name | @if(@$sellType === 'rent')Dropoff | Pickup | @endifQty. | Price | SubTotal | @if(@$sellType === 'rent')Total (5% GST) | @elseTotal(5% GST + 7% PST) | @endif @if(@$sellType === 'rent' && $status != '1')Action | @endif||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
@if($item->variant)
|
{{$item->item->name}} |
@php
$rentForDetails = explode(' | ', $item->rentFor);
$rentFieldName = $rentForDetails[0] ?? '';
@endphp
@if(@$sellType === 'rent')
{{ $item->start_date}} |
{{ $item->end_date}} |
{{-- @if($rentFieldName === 'rental_weekend' || $rentFieldName === 'rental_rate_weekend')
WEEKEND |
@elseif($rentFieldName === 'rental_7_days' || $rentFieldName === 'rental_rate_7days')
7 DAYS |
@elseif($rentFieldName === 'rental_14_days' || $rentFieldName === 'rental_rate_14days')
14 DAYS |
@elseif($rentFieldName === 'rental_21_days' || $rentFieldName === 'rental_rate_21days')
21 DAYS |
@elseif($rentFieldName === 'rental_1_month' || $rentFieldName === 'rental_rate_month')
MONTH |
@else
{{ $rentFieldName }} |
@endif --}}
@endif
{{$item->qty}} |
${{ $item->price }} |
${{$item->price * $item->qty}} |
@if(@$sellType === 'rent')
${{ number_format($item->price * $item->qty * 1.05, 2, '.', '') }} |
@else
@php
$gst = number_format($item->price * 0.05,2);
$pst = number_format($item->price * 0.07,2);
@endphp
${{ number_format($item->price + $gst + $pst, 2, '.', '') }} |
@endif
@if(@$sellType === 'rent' && $status != '1')
@endif |
| Name | - | {{$order->del_name}} | |
| AGE | - | {{$order->del_age}} | |
| Contact Number | - | {{$order->del_phone}} | |
| Information | - | {{$order->del_info}} |