@extends('theme::layouts.app') @push('css') @endpush @section('content') @php $currency=\App\Options::where('key','currency_icon')->select('value')->first(); @endphp
@php $subtotal=0; @endphp @foreach($info->orderlist as $key => $itemrow) @php $total= $itemrow->total*$itemrow->qty+$subtotal; $subtotal = $total; @endphp @endforeach
{{ __('Item Name') }} {{ __('Quantity') }} {{ __('Total Amount') }}
{{ $itemrow->products->title ?? '' }} {{ $itemrow->qty ?? '' }} {{ strtoupper($currency->value) }}{{ $itemrow->total*$itemrow->qty }}

Subtotal: {{ strtoupper($currency->value) }}{{ $subtotal }}

@if($info->coupon_id != null)

Discount Code: {{ $info->coupon->title ?? '' }}

Discount: {{ strtoupper($currency->value) }}{{ $info->discount }}

@endif

Total: {{ strtoupper($currency->value) }}{{ $info->total+$info->shipping }}

{{ __('Order Log') }}
@if($info->order_type == 1)
{{ __('Rider Log') }}
@endif
{{ $info->created_at->diffForHumans() }}

{{ __('Order Created') }}

@foreach($info->orderlog ?? [] as $key => $row)
@if($row->status == 3) @elseif($row->status == 2) @elseif($row->status == 1) @elseif($row->status == 0) @endif
{{ $row->created_at->diffForHumans() }}
@if($row->status == 3)

{{ __('Order Accepted') }}

@elseif($row->status == 2)

{{ __('Order Created') }}

@elseif($row->status == 1)

{{ __('Order Completed') }}

@elseif($row->status == 0)

{{ __('Order Cancelled') }}

@endif
@endforeach
@if($info->order_type == 1)
@foreach($info->riderlog ?? [] as $key => $row)
@if($row->status == 2) @elseif($row->status == 1) @elseif($row->status == 0) @endif
{{ $row->created_at->diffForHumans() }}
@if($row->status == 2)

{{ __('Order Pending') }}

@elseif($row->status == 1)

{{ __('Order Accepted') }}

@elseif($row->status == 0)

{{ __('Order Cancelled') }}

@endif
@endforeach
@endif
@if($info->order_type == 1 && $info->status==3 && !empty($info->liveorder))

{{ __('Rider Activity') }}

@endif
{{ __('Amount') }}
{{ strtoupper($currency->value) }}{{ number_format($total+$info->shipping - $info->discount,2) }}
{{ __('Shipping') }}
{{ strtoupper($currency->value) }}{{ $info->shipping }}
{{ __('Payment Mode') }}
{{ strtoupper($info->payment_method) }}
{{ __('Payment Status') }}
@if($info->payment_status == 0) {{ __('pending') }} @elseif($info->payment_status == 1) {{ __('Completed') }} @endif
{{ __('Order Status') }}
@if($info->status == 0) {{ __('Cancelled') }} @elseif($info->status == 2) {{ __('Pending') }} @elseif($info->status == 3) {{ __('Accepted') }} @elseif($info->status == 1) {{ __('Completed') }} @endif
@php $customerInfo=json_decode($info->data); @endphp
{{ __('Name') }}:
{{ $customerInfo->name }}
{{ __('Phone') }}:
{{ $customerInfo->phone }}
@if($info->order_type == 1)
{{ __(' Delevery Address') }}:
{{ $customerInfo->address }}
@endif
{{ __('Order Note') }}

{{ $customerInfo->note }}

@if($info->order_type == 1) @if(!empty($info->riderinfo))

{{ __('Rider Information') }}

@if(!empty($info->riderinfo->info)) @php $data=json_decode($info->riderinfo->info->content); @endphp

{{ __('Name') }} : {{ $info->riderinfo->name }}

{{ __('Phone1') }} : {{ $data->phone1 }}

{{ __('Phone2') }} : {{ $data->phone2 }}

@endif
@endif @endif @if(!empty($info->vendorinfo->info->content)) @php $json=json_decode($info->vendorinfo->info->content); @endphp

{{ __('Restaurant Information') }}

@if(!empty($info->riderinfo->info)) @php $data=json_decode($info->riderinfo->info->content); @endphp

{{ __('Restaurant Name') }} : {{ $info->vendorinfo->name }}

{{ __('Phone1') }} : {{ $json->phone1 }}

{{ __('Phone2') }} : {{ $json->phone2 }}

{{ __('Address') }} : {{ $json->full_address }}

@endif
@endif
@endsection @if($info->order_type == 1 && $info->status==3 && !empty($info->liveorder)) @push('js') @php $customerInfo=json_decode($info->data); @endphp @endpush @endif