@extends("front/layout.master") @section('title','Shipping Address - Checkout |') @section("body")
@auth

{{ Auth::user()->name }}

{{ Auth::user()->email }}

@endauth

@csrf
@if(Auth::user()->addresses->count()>0) @foreach(Auth::user()->addresses as $address)

@if($address->defaddress == 1)
{{ __('staticwords.Default') }}
@endif
@php $c = App\Allcountry::where('id',$address->country_id)->first(); $s = App\Allstate::where('id',$address->state_id)->first(); $ci = App\Allcity::where('id',$address->city_id)->first(); @endphp {{ strip_tags($address->address) }},
{{ $ci->name ?? '' }},{{ $s->name ?? ''}},{{ $c->nicename ?? '' }}@if (isset($address->pin_code)), ({{ $address->pin_code }}) @endif
@endforeach @else

{{ __('staticwords.Noaddress') }}

@endif

@if(Auth::user()->addresses->count()>0) @endif

{{ __('staticwords.PaymentDetails') }}

{{ __('staticwords.Subtotal') }}
{{sprintf("%.2f",$total*$conversion_rate,2)}}
@if(Session::has('coupanapplied'))
{{ __('staticwords.Discount') }}
- {{sprintf("%.2f",Session::get('coupanapplied')['discount']*$conversion_rate,2)}}
@endif
{{ __('staticwords.Shipping') }}
@if($shippingcharge !=0) {{sprintf("%.2f",$shippingcharge*$conversion_rate,2)}} @else {{ __('staticwords.Free') }} @endif
{{ __('staticwords.Total') }}
@if(!Session::has('coupanapplied')) {{sprintf("%.2f",$grandtotal*$conversion_rate,2)}} @else {{sprintf("%.2f",($grandtotal-session('coupanapplied')['discount'])*$conversion_rate,2)}} @endif
{{-- Address Modal start --}}