@extends('admin.layouts.master') @section('title', 'Order') @section('content')
| Sl.No | Order Id | Price | Customer | @if(Auth::user()->user_type==1)Deliveryboy | @endifStatus | Action |
|---|---|---|---|---|---|---|
| {{$key+1}} | {{ $val->orderId}} @php echo date('h:i A, d M y', strtotime($val->created_at)) @endphp |
Rs {{ $val->totalPrice}} @if($val->commission>0) Paid Amount : {{$val->totalPrice-$val->commission}} @endif |
{{ $val->firstName }} {{ $val->mobile }} |
@if(Auth::user()->user_type==1)
@php $returnitem = ''; if((@$logorderIds[$val->id]>0) || ($val->is_return>0)){ $returnitem = 'disabled'; } @endphp | @endif
@if($val->is_pos==1)
COUNTER
@endif
@if($val->orderStatus=="Cancel" || $val->orderStatus=="Deleted")
Cancelled
@elseif($val->orderStatus=="Delivered")
{{ $val->orderStatus}}
@if($val->is_pos==1)
@php echo date("h:i A, d M ", strtotime($val->created_at));@endphp @else @php echo date("h:i A, d M ", strtotime($val->delivered_date));@endphp @endif @if(@$logorderIds[$val->id]>0) Partially Returned@endif
@else
{{ $val->orderStatus}}
@endif
|
|