@extends('frontend.default.layouts.app') @section('breadcrumb') {{__('common.orders')}} @endsection @section('title') {{__('common.orders')}} @endsection @section('styles') @endsection @section('content') @include('frontend.default.partials._breadcrumb') @php $total_gst = 0; @endphp
@foreach ($processes as $key => $process)

{{ $process->name }}

{{ $process->description }}

@endforeach
  • {{__('common.order_id')}}: {{ $order->order_number }}

    {{__('defaultTheme.order_date')}}: {{ $order->created_at }}

  • @if ($order->is_confirmed == 1)

    {{__('common.status')}}: {{__('common.confirmed')}}

    @elseif ($order->is_confirmed == 2)

    {{__('common.status')}}: {{__('common.declined')}}

    @else

    {{__('common.status')}}: {{__('common.pending')}}

    @endif @if ($order->is_paid == 1)

    {{__('common.payment')}}: {{__('common.paid')}}

    @else

    {{__('common.payment')}}: {{__('common.pending')}}

    @endif
  • {{__('defaultTheme.order_amount')}}: {{ single_price($order->grand_total) }}

@foreach ($order->packages as $key => $package)

{{__('common.package')}} : {{ $package->package_code }}

@if(isModuleActive("multiVendor"))

{{__('defaultTheme.sold_by')}} @if($package->seller->role->type == 'seller') {{ @$package->seller->first_name }} @else {{ app('general_setting')->company_name }} @endif

@endif
@if (file_exists(base_path().'/Modules/GST/') && (app('gst_config')['enable_gst'] == "gst" || app('gst_config')['enable_gst'] == "flat_tax"))

{{__('common.price')}} : {{ single_price($package->products->sum('total_price') + $package->tax_amount + $package->gst_taxes->sum('amount')) }}

@else

{{__('common.price')}} : {{ single_price($package->products->sum('total_price') + $package->tax_amount) }}

@endif
@if($package->is_cancelled == 0)

{{ $package->shipping_date }}

@if($package->carrier->slug == 'Shiprocket') @php $status = $order_status[$package->id]; $ready_to_ship = false; $pickup= false; $ship= false; $delivered= false; switch ($status){ case "READY TO SHIP": $ready_to_ship = true; break; case 'PICKUP': $ready_to_ship = true; $pickup= true; break; case 'SHIPPED': $ready_to_ship = true; $pickup= true; $ship= true; break; case 'DELIVERED': $ready_to_ship = true; $pickup= true; $ship= true; $delivered= true; break; } @endphp
1

Pending

1

Ready To Ship

1

Pickup

1

Shipped

1

Delivered

@else @foreach ($processes as $key => $process)

{{ $process->name }}

@endforeach @endif
@else
{{__('defaultTheme.order_cancelled')}}
@endif
    @foreach ($package->delivery_states->take(1) as $key => $first_state_info)
  • {{ $first_state_info->created_at->format('d-m-Y h:i:s A') }} [{{ $first_state_info->note }}]

  • @endforeach
      @foreach ($package->delivery_states->skip(1) as $key => $state_info)
    • {{ $state_info->created_at->format('d-m-Y h:i:s A') }} [{{ $state_info->note }}]

    • @endforeach
{{__('defaultTheme.view_more')}}
@if($package->carrier->type == 'Manual' && $package->carrier_order_id)
@endif
  • {{__('defaultTheme.package_code')}}: {{ $package->package_code }}

    @if(isModuleActive('MultiVendor'))

    {{__('defaultTheme.sold_by')}} @if(@$package->seller->role->type == 'seller') {{ @$package->seller->first_name }} @else {{ app('general_setting')->company_name }} @endif

    @endif
  • @if(isModuleActive('MultiVendor'))

    {{__('defaultTheme.store')}}: {{ @$package->seller->SellerAccount->seller_shop_display_name }}

    @endif
  • {{__('defaultTheme.order_amount')}}:: {{ single_price($package->products->sum('total_price')) }}

    {{__('defaultTheme.tax_amount')}}:: {{ single_price($package->tax_amount) }}

    @if (file_exists(base_path().'/Modules/GST/') && (app('gst_config')['enable_gst'] == "gst" || app('gst_config')['enable_gst'] == "flat_tax")) @foreach ($package->gst_taxes as $key => $gst_tax) @php $total_gst += $gst_tax->amount; @endphp

    {{ $gst_tax->gst->name }}:: {{ single_price($gst_tax->amount) }}

    @endforeach @endif
@foreach ($package->products as $key => $package_product) @if ($package_product->type == "gift_card")
#

{{ textLimit(@$package_product->giftCard->name, 14) }} [ Check Shipping email for secret key]

{{ $package_product->qty }} X {{ single_price($package_product->price) }}

@else
@if (@$package_product->seller_product_sku->sku->product->product_type == 1) # @else # @endif

{{ @$package_product->seller_product_sku->product->product_name? textLimit(@$package_product->seller_product_sku->product->product_name, 18) : textLimit(@$package_product->seller_product_sku->sku->product->product_name, 18) }}

@if($package_product->seller_product_sku->sku->product->product_type == 2)

@php $countCombinatiion = count(@$package_product->seller_product_sku->product_variations); @endphp @foreach(@$package_product->seller_product_sku->product_variations as $key => $combination) @if($combination->attribute->id == 1) {{$combination->attribute->name}}: {{$combination->attribute_value->color->name}} @else {{$combination->attribute->name}}: {{$combination->attribute_value->value}} @endif @if($countCombinatiion > $key +1) , @endif @endforeach

@endif

{{ $package_product->qty }} X {{ single_price($package_product->price) }}

@endif @endforeach
@if ($order->is_confirmed == 0 && $package->is_cancelled == 0 || $order->is_confirmed == 1 && $package->is_cancelled == 0 && $package->delivery_status <= 2) id }} class="btn_2 order_cancel_by_id">{{__('defaultTheme.cancel_order')}} @elseif($order->is_completed == 1 || $package->delivery_status >= 5) @if (\Carbon\Carbon::now() <= $order->created_at->addDays(app('business_settings')->where('type', 'refund_times')->first()->status) && $package->is_cancelled == 0) {{__('defaultTheme.open_dispute')}} @endif @elseif($package->is_cancelled == 1) {{__('defaultTheme.order_cancelled')}} @endif @if($package->delivery_status >4 && count(@$package->reviews)<1) {{__('defaultTheme.write_a_review')}} @endif
@endforeach
{{__('defaultTheme.shipping_info')}} {{__('defaultTheme.billing_info')}} {{__('defaultTheme.payment_info')}}
{{__('common.secret_id')}} : {{$order->guest_info->guest_id}}
{{__('common.name')}} : {{$order->guest_info->billing_name}}
{{__('common.subtotal')}} : {{single_price($order->sub_total)}}
{{__('common.name')}} :{{$order->guest_info->shipping_name}}
{{__('common.discount')}} : - {{single_price($order->discount_total)}}
{{__('common.phone_number')}} : {{$order->guest_info->billing_phone}}
{{__('common.shipping_charge')}} : {{single_price($order->shipping_total)}}
{{__('common.phone_number')}} : {{$order->guest_info->shipping_phone}}
{{__('common.address')}} : {{$order->guest_info->billing_address}}
@if($order->coupon)
{{__('common.coupon')}} : - {{single_price($order->coupon->discount_amount)}}
@else
{{__('defaultTheme.tax_amount')}} : {{single_price($order->tax_amount)}}
@endif
{{__('common.address')}} : {{$order->guest_info->shipping_address}}
{{__('common.city')}} : {{@$order->guest_info->getBillingCity->name}}
@if($order->coupon)
{{__('defaultTheme.tax_amount')}} : {{single_price($order->tax_amount)}}
@else
{{__('common.grand_total')}} : {{single_price($order->grand_total)}}
@endif
{{__('common.city')}} : {{@$order->guest_info->getShippingCity->name}}
{{__('common.state')}} : {{@$order->guest_info->getBillingState->name}}
@if($order->coupon && file_exists(base_path().'/Modules/GST/') && (app('gst_config')['enable_gst'] == "gst" || app('gst_config')['enable_gst'] == "flat_tax"))
{{__('defaultTheme.paid_by')}} : {{$order->GatewayName}}
@else
{{__('defaultTheme.payment_status')}} @if ($order->is_paid == 1) : {{__('common.paid')}} @else : {{__('common.pending')}} @endif
@endif
{{__('common.state')}} : {{@$order->guest_info->getShippingState->name}}
{{__('common.country')}} : {{@$order->guest_info->getBillingCountry->name}}
@if($order->coupon && file_exists(base_path().'/Modules/GST/') && (app('gst_config')['enable_gst'] == "gst" || app('gst_config')['enable_gst'] == "flat_tax"))
{{__('defaultTheme.payment_status')}} @if ($order->is_paid == 1) : {{__('common.paid')}} @else : {{__('common.pending')}} @endif
@endif
{{__('common.country')}} : {{@$order->guest_info->getShippingCountry->name}}
@if($order->note != null)
{{__('common.order')}} {{__('common.note')}}:

{{ $order->note }}

@endif
@endsection @push('scripts') @endpush