@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

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 @if ($form->commission_total_price)

{{ __('common.comm_price') }} : {{ $form->Currency->symbol }} {{ $form->commission_total_price }}

@endif

{{ __('common.total_amount') }} : {{ $form->Currency->symbol }} {{ $form->total_price }}

{{ __('common.discount') }} : - {{ $form->Currency->symbol }} {{ $form->discount_price }}

{{ __('common.application_fee') }} : - {{ $form->Currency->symbol }} {{ round($netcommission,2) }} ({{ $form->commission_percent ?? '' }}%)

{{ __('common.delivery_fee') }} : - {{ $form->Currency->symbol }} {{ $shipmentdata['service_amount'] ?? '' }}

{{ __('common.netamount') }} : {{ $form->Currency->symbol }} {{ $totalamount ?? '' }}

{{ __('common.shipper_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.shipping_address') }}

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

{{ __('common.customer_name') }} @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
@csrf @php $i = 1 @endphp @foreach ($orderitem as $list) @foreach ($list->ProductDetail as $data) @php $data = json_decode($list->product_option,true); if(!empty($data)){ $option = implode(",",$data); }else{ $option = null; } @endphp @endforeach @endforeach
{{ __('common.order_id') }} {{ __('common.product_name') }} {{ __('common.attributes') }} {{ __('common.qty') }} {{ __('common.orignal_price') }} {{ __('common.status') }} {{ __('common.action') }}
{{ $list->order_id }} {{ $data->product_name }}{{$option ?? ""}} {{ $list->quantity }} {{ $form->Currency->symbol }} @if (is_null($list->offer_price)) {{ $list->original_price }} @else {{ $list->offer_price }} @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') @elseif($list->status == 'Delivered') @elseif($list->status == 'Processing') Cancel @endif
@php $pickup_type = json_decode($form->delivery_request, true); @endphp @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') @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')
@csrf @if ($form->status == 'Cancelled' || $form->status == 'Delivered') @else
@include('includes.invalid', [ 'field' => 'attributes_id', ])
@endif
@endif
@if (isset($shipment))

Shipment Details

{{ __('common.order_id') }} {{ __('common.label_url') }} {{ __('common.status') }} {{ __('common.tracking_number') }} {{ __('common.delivery_date') }} {{ __('common.amount') }}
{{ $shipment->order_id ?? '' }} @if (isset($shipment->label_url)) Label Url @endif {{ $shipment->status ?? '' }} {{ $shipment->tracking_number ?? '' }} {{ $shipment->delivery_date ?? '' }} {{ $shipment->amount ?? '' }}
@endif
@endsection @push('head.start') @endpush @push('body.end') @endpush