@extends('site.layout.layout') @section('title',__('Shipping')) @section('content')

{{ __('Shipping') }}

{{ __('Please enter your shipping details to ensure your product arrives on time. Make sure to update your delivery address and any special notes that may help expedite the shipping process.') }}

{{ __('Shipping details') }}
@forelse(auth()->user()->addresses ?? [] as $address)
user()->addresses()->count() == 1) checked @endif>
{{ $address->first_name . ' ' . $address->second_name }}
{{ $address->city?->getTranslation('city',app()->getLocale()) . ' ' . $address->region . ' ' . $address->street . ' ' . $address->distinct }}
{{ $address->country_code}} {{ $address->mobile }}
@php $address_country_iso = App\Helpers\CodeHelper::iso($address->country_code); @endphp @empty {{ __('Add New Address') }} @endforelse

{{ __('Specify shipping companies for each product.') }}
@foreach ($stores as $store)

{{ __('Store Title') }}: {{ $store->getTranslation('title', app()->getLocale()) }}

@foreach ($store->products as $product) @php $cart = $product->carts()->where('user_id', auth()->id())->first(); @endphp @if ($cart)
{{ __('Store Title') }}: {{ $store->getTranslation('title', app()->getLocale()) }}
{{ $product->getTranslation('description', app()->getLocale()) }}

{{ number_format($product->product_net_price, 2) }}

{{-- Shipping method placeholder --}}
@if(app()->getLocale() == 'en') {{ __('No selection yet') }} @else {{ __('No selection yet') }} @endif
@endif @endforeach @endforeach

{{ __('Choose payment method') }}

{{ __('Order summary') }}

@php $subtotal = auth()->user()->carts()->sum('total'); $vat = $subtotal * 0.15; @endphp
{{ __('Total products') }}
{{ number_format($subtotal, 2) }}
{{ __('Discount') }}
0
{{ __('Shipping Cost') }}
0
{{ __('VAT') }} (15%)
{{ number_format($vat, 2) }}
{{ __('Do you have a discount code?') }}

{{ __('Total') }}

{{ number_format($subtotal + $vat, 2) }}

{{ __('Prices include tax') }}*

@endsection @push('scripts')