@extends('layouts.app') @section('title') {{ config('app.name', 'Laravel') }} | {{ __('common.users') }} @endsection @section('heading') {{ __('common.category') }} @endsection @section('heading-icon') admin_panel_settings @endsection @section('content')

@if (optional($form)->id) {{ __('common.order_detail') }} - {{ optional($form)->id }} @endif

Download Invoice reply_all  {{ __('common.go_back') }} {{-- @php $address = json_decode($form->address, true); @endphp @if(!empty($address) && $form->getVendor->country_code == $address['country_code'] && $form->status != 'Cancelled') @endif --}}

{{ __('common.order_info') }}

{{ $form->status }}
@if (!empty($address) && $form->getVendor->country_code == $address['country_code']) @endif {{--

Note: {{ __('common.order_note') }}

--}}

{{ __('common.order_details') }}

@php $shipmentdata = json_decode($form->delivery_request, true) @endphp @php $commission = (int) $form->commission_percent + 100; $totalAmount = ($form->original_price / $commission) * 100; $netcommission = $form->original_price - $totalAmount; if(isset($shipmentdata['service_amount'])){ $subtotalamount = $form->total_price - $shipmentdata['service_amount'] ?? 0; }else{ $subtotalamount = $form->total_price - 0; } $totalamount = round($subtotalamount - $netcommission, 2); @endphp

{{ __('common.order_number') }} : {{ $form->order_number }}

{{ __('common.trans_id') }} : {{ $form->transaction_id }}

{{ __('common.reselling') }} : {{ $form->reselling }}

{{ __('common.payment_methot') }} : {{ $form->payment_method }}

{{ __('common.delivery_type') }} : {{ $shipmentdata['service_type'] ?? '' }}

@if ($form->coupon_code)

{{ __('common.coupon_code') }} : {{ $form->coupon_code }}

@endif

{{ __('common.pickup_address') }}

{{ __('common.seller_name') }} : {{ $form->getVendor->business_name }}

{{ __('common.phone') }} : @if ($form->getVendor->country_code == 'US') {{ app\Helpers\Helper::formattingUS('+1' . $form->getVendor->business_mobile) ?? $form->getVendor->business_mobile }}

@elseif($form->getVendor->country_code == 'BR') {{ app\Helpers\Helper::formattingBR('+55' . $form->getVendor->business_mobile) ?? $form->getVendor->business_mobile }}

@else {{ $form->getVendor->business_mobile }} @endif

{{ __('common.pincode') }} : {{ $form->getVendor->pin }}

{{ __('common.cityError') }} : {{ $form->getVendor->city }}

{{ __('common.location_state') }} : {{ $form->getVendor->state }}

{{ __('common.address') }} {{ $form->getVendor->address }}

@if ($form->getVendor->company_document)

{{ __('common.company_document') }} {{ $form->getVendor->company_document }}

@endif
@php $address = json_decode($form->address, true); @endphp

{{ __('common.delivery_address') }}

{{ __('common.user_name') }} {{ $form->User?->name }}

{{ __('common.phone') }} @if (!empty($address) && $address['country_code'] == 'US') {{ app\Helpers\Helper::formattingUS('+1' . $form->User->phone) ?? $form->User->phone }}

@elseif(!empty($address) && $address['country_code'] == 'BR') {{ app\Helpers\Helper::formattingBR('+55' . $form->User->phone) ?? $form?->User?->phone }}

@else {{ $form->User->phone }} @endif


{{ __('common.customer_name') }} {{ $address['name'] ?? ""}}

{{ __('common.mobile') }}: @if (!empty($address) && $address['country_code'] == 'US') {{ app\Helpers\Helper::formattingUS('+1' . $address['mobile']) ?? $address['mobile'] }}

@elseif(!empty($address) && $address['country_code'] == 'BR') {{ app\Helpers\Helper::formattingBR('+55' . $address['mobile']) ?? $address['mobile'] }}

@else {{ $address['mobile'] ?? ""}} @endif

{{ __('common.address_type') }} {{ $address['address_type'] ?? '' }}

{{ __('common.pincode') }}: {{ $address['pincode'] ?? '' }}

{{ __('common.landmark') }}: {{ $address['landmark'] ?? '' }}

{{ __('common.address') }} {{ $address['address'] ?? '' }}

@if (isset($address['document']))

{{ __('common.document') }} {{ $address['document'] }}

@endif
@if($order->status == 'Processing') @endif
@csrf @if ($form->status == 'Processing') @endif @php $i = 1 @endphp @foreach ($orderitem as $list) @foreach ($list->ProductDetail as $data) @endforeach @endforeach
{{ __('common.order_id') }} {{ __('common.product_name') }} {{ __('Options') }} {{ __('Per unit Price') }} {{ __('common.qty') }} {{ __('Seller Cost') }} {{ __('Admin Fee') }} {{ __('common.orignal_price') }} {{ __('common.status') }}{{ __('common.action') }}
{{ $list->order_id }} {{ $data->product_name }}
({{ $data->weight }}{{ $data->units }} / {{ $data->length }}L | {{ $data->width }}W | {{ $data->height }}H)
@php if(isset($list->product_option) && $list->product_option != null){ $op = json_decode($list->product_option,true); foreach($op as $opdata){ echo $opdata['attr_type'] .'-'.$opdata['value'].'
'; } }else{ echo 'No Data'; } @endphp
@php if($data->product_commission > 0){ $per = $data->product_commission+100; $amount = ($list->offer_price / $per) * 100; if($amount > 0){ echo '₹'.number_format($amount, 2); }else{ echo '₹0'; } }else{ $amount = 0; if($list->offer_price > 0){ echo '₹'.number_format($list->offer_price, 2); }else{ echo '₹0'; } } @endphp {{ $list->quantity }} @php if($data->product_commission > 0){ $per = $data->product_commission+100; $amount = ($list->offer_price / $per) * 100; $check1 = $amount * $list->quantity; if($check1 > 0){ echo '₹'.number_format($check1, 2); }else{ echo '₹0'; } }else{ $amount = 0; $check2 =$list->offer_price *$list->quantity; if($check2 > 0){ echo '₹'.number_format($check2, 2); }else{ echo '₹0'; } } @endphp @php if($data->product_commission > 0){ $amounts = ($data->product_commission / 100) * $amount; $check3 =$amounts *$list->quantity; if($check3 > 0){ echo '₹'.number_format($check3, 2); }else{ echo '₹0'; } }else{ echo '₹'. 0; } @endphp @if (is_null($list->offer_price)) {{ '₹'. $list->original_price }} @else {{ '₹'. $list->offer_price *$list->quantity }} @if ($list->payment_status == 'Refunded') {{ $list->payment_status ? $list->payment_status : '' }} ( {{ $form->Currency->symbol }} {{ $list->payment_status ? $list->offer_price * $list->quantity:'' }}) @endif @endif {{ $list->status }} @if ($list->status == 'Cancelled' || $list->payment_status == 'Refunded') {{-- --}} @if (isset($order->orderPaid->charge_id)) @if ($list->payment_status == 'Refunded') {{ __('common.already_refunded') }} @else {{ __('common.partial_refunded') }} @endif @endif @elseif($list->status == 'Delivered') @elseif($list->status == 'Processing') Cancel Accept @endif
@php $pickup_type = json_decode($form->delivery_request, true); @endphp @if(isset($order->orderPaid->charge_id) && $form->status == 'Cancelled' &&$form->status != 'Processing') @if($list->payment_status == 'Refunded' && $form->status != 'Processing') {{ __('common.already_refunded') }} @else {{ __('common.full_refund') }} @endif @endif {{-- @if ($form->getVendor->country_code == 'BR' && $address['country_code'] == 'BR' && $form->status == 'Packed') {{ __('common.create_shipment') }} @else @if (isset($pickup_type['service_type']) && $pickup_type['service_type'] == 'free_delivery' && $form->status == 'Packed' && $form->status != 'Processing') @else @if ($order->status == 'Packed') --}} {{-- @if (isset($shipment->status) && $shipment->status == 'Create') {{ __('common.Cancel_Shipment') }} @else @endif --}} {{-- {{ __('common.create_shipment') }} --}} {{-- @endif @endif @endif @include('includes.shipmentModel', [ 'address' => optional($address), 'form' => $form, ]) --}}
@if ($order->status != 'Pending' && $form->status != 'Processing')
@csrf @if ($form->status == 'Cancelled' || $form->status == 'Delivered') @else
@include('includes.invalid', [ 'field' => 'attributes_id', ])
@endif
@endif
@if($form->status == 'Accept'&& $form->status != 'Processing' || $form->status == 'Delivered' ||$form->status == 'Packed' ||$form->status == 'Dispatched')
@csrf
@include('includes.invalid', ['field' => 'status'])
@endif @if(!empty($shipment) && $shipment->shipment_status == 'shipment_selected' && $form->status != 'Delivered' &&$form->status != 'Packed' && $form->status != 'Dispatched'&&$form->status != 'Accept' )
@csrf
@include('includes.invalid', ['field' => 'status'])
@endif @if($form->status != 'Processing') @if(!empty($SelectedshipmentMaster) && $SelectedshipmentMaster->name == 'Shiprocket') @include('admin.order.Shiprocketcard') @elseif(!empty($SelectedshipmentMaster) && $SelectedshipmentMaster->name == 'Xpressbees') @include('admin.order.Xpressbeescard') @elseif(!empty($SelectedshipmentMaster) && $SelectedshipmentMaster->name == 'Custom Service') @include('admin.order.Customcard') @endif @endif
{{--
--}} {{-- Start Courier Modal Form --}} @if(!empty($SelectedshipmentMaster)&& $SelectedshipmentMaster->name == 'Shiprocket') @include('admin.order.shiprocketcourier') @elseif(!empty($SelectedshipmentMaster)&& $SelectedshipmentMaster->name == 'Xpressbees') @include('admin.order.xpressbeescourier') @elseif(!empty($SelectedshipmentMaster)&& $SelectedshipmentMaster->name == 'Custom Service') @include('admin.order.Customcourier') @else @endif {{-- End Courier Modal Form --}} {{-- --}} {{-- pickup request --}} @endsection @push('head.start') @endpush @push('body.end') @endpush