@extends('backEnd.master') @section('styles') @endsection @section('mainContent')

{{ $order->package_code }} order Update

@csrf
@if ($order->order->customer_id)
{{__('defaultTheme.billing_info')}}
{{__('common.name')}}
{{__('common.email')}}
{{__('common.phone')}}
{{__('common.address')}}
{{__('common.postal_code')}}
{{__('common.country')}}
{{__('common.state')}}
{{__('common.city')}}
@else
{{__('defaultTheme.billing_info')}}
{{__('common.name')}}
{{__('common.email')}}
{{__('common.phone')}}
{{__('common.address')}}
{{__('common.postal_code')}}
{{__('common.country')}}
{{__('common.state')}}
{{__('common.city')}}
@endif @if ($order->order->customer_id)
{{__('defaultTheme.shipping_info')}}
{{__('common.name')}}
{{__('common.email')}}
{{__('common.phone')}}
{{__('common.address')}}
{{__('common.postal_code')}}
{{__('common.country')}}
{{__('common.state')}}
{{__('common.city')}}
@else
{{__('defaultTheme.billing_info')}}
{{__('common.name')}}
{{__('common.email')}}
{{__('common.phone')}}
{{__('common.address')}}
{{__('common.postal_code')}}
{{__('common.country')}}
{{__('common.state')}}
{{__('common.city')}}
@endif
@foreach ($order->products as $key => $package_product) @if($package_product->type == "gift_card") @continue @endif @if ($package_product->type == "gift_card") @else @if (@$package_product->seller_product_sku->sku->product->product_type == 2) @else @endif @endif @endforeach
{{__('common.sl')}} {{__('common.image')}} {{__('common.name')}} {{__('common.quantity')}} {{__('common.price')}} {{__('common.tax')}} {{__('common.total')}}
{{ $key + 1 }}
@if ($package_product->type == "gift_card") # @else @if (@$package_product->seller_product_sku->sku->product->product_type == 1) # @else # @endif @endif
@if ($package_product->type == "gift_card") {{ @$package_product->giftCard->name }} {{substr(@$package_product->giftCard->name,0,22)}} @if(strlen(@$package_product->giftCard->name) > 22)... @endif {{($order->gift_card_uses->where('gift_card_id', $package_product->giftCard->id)->first() != null && $order->gift_card_uses->where('gift_card_id', $package_product->giftCard->id)->first()->is_mail_sent) ? "__('order.sent_already')" : "__('order.send_code_now')"}} @else {{substr(@$package_product->seller_product_sku->sku->product->product_name,0,22)}} @if(strlen(@$package_product->seller_product_sku->sku->product->product_name) > 22)... @endif @endif
@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->name == 'Color')
{{ $combination->attribute->name }}:
@else {{ $combination->attribute->name }}: {{ $combination->attribute_value->value }} @endif @if ($countCombinatiion > $key + 1)
@endif @endforeach
{{ single_price($package_product->price) }} {{ single_price($package_product->tax_amount) }} {{ single_price($package_product->price * $package_product->qty + $package_product->tax_amount) }}
@endsection @push('scripts') @endpush