@extends("front.layout.master") @php $sellerac = App\Store::where('user_id','=', $user->id)->first(); $ifadd = count(Auth::user()->addresses); @endphp @section('title', __('staticwords.ManageAddress') . ' | ') @section("body")

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

{{ count($user->addresses) }} {{ __('saved addresses') }}

@if(count($user->addresses) > 0)
@foreach($user->addresses as $address) @php $c = optional(App\Allcountry::where('id',$address->country_id)->first())->nicename; $s = optional(App\Allstate::where('id',$address->state_id)->first())->name; $ci = optional(App\Allcity::where('id',$address->city_id)->first())->name; @endphp
@if($address->defaddress == 1) {{ __('Default') }} @endif
{{ $address->name }}
{{ $address->phone }}
@if(!empty($address->email))
{{ $address->email }}
@endif

{{ strip_tags($address->address) }}, {{ $ci }}, {{ $s }}, {{ $c }}@if(isset($address->pin_code)) — {{ $address->pin_code }}@endif

@if(env('DEMO_LOCK')==0) @endif
@endforeach
@else

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

@endif
{{-- Add address modal --}} {{-- Edit & delete modals --}} @foreach($user->addresses as $address) @php $findcon = App\Allcountry::find($address->country_id); @endphp @endforeach @include('front.partials.change-password-modal') @endsection @section('script')