@extends('shop::customers.account.index') @section('page_title') {{ __('shop::app.customer.account.address.index.page-title') }} @endsection @section('page-detail-wrapper') @if ($addresses->isEmpty()) {{ __('shop::app.customer.account.address.index.add') }} @endif
{{ __('shop::app.customer.account.address.index.title') }} @if (! $addresses->isEmpty()) {{ __('shop::app.customer.account.address.index.add') }} @endif
{!! view_render_event('bagisto.shop.customers.account.address.list.before', ['addresses' => $addresses]) !!}
@if ($addresses->isEmpty())
{{ __('shop::app.customer.account.address.index.empty') }}
@else
@foreach ($addresses as $address)
{{ $address->first_name }} {{ $address->last_name }}
  • {{ $address->address1 }}
  • {{ $address->city }}
  • {{ $address->state }}
  • {{ core()->country_name($address->country) }} {{ $address->postcode }}
  • {{ __('shop::app.customer.account.address.index.contact') }} : {{ $address->phone }}
{{ __('shop::app.customer.account.address.index.edit') }} {{ __('shop::app.customer.account.address.index.delete') }}
@method('delete') @csrf
@endforeach
@endif
{!! view_render_event('bagisto.shop.customers.account.address.list.after', ['addresses' => $addresses]) !!} @endsection @push('scripts') @endpush @if ($addresses->isEmpty()) @endif