@if(count($addresses))
    @foreach($addresses as $key=>$row)

        <div class="loc_card col-md-11">
            <div class="heading d-flex align-items-center justify-content-between">
                <div class="d-flex align-items-center">
                    <span class="icon-outer">
                        <i class="fa-solid fa-location-dot"></i>
                    </span>
                    <h5 class="title mb-0"><b>  {{__('web.address')}} {{$key+1}}   </b></h5>
                </div>
                <div class="butns inFlex justify-content-end">
                    <a href="{{route('address.edit',$row->id)}}" class="card_butn edit">{{__('web.edit')}}</a>
                    <button type="button" onclick="deleteAddress(this)" action-id="{{route('address.destroy',$row->id)}}" class="card_butn delete">{{__('web.delete')}}</button>
                </div>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-6">
                        <div class=" d-flex align-items-center my-2">
                            <span class="icon-outer">
                                <i class="fa-light fa-city"></i>
                            </span>
                            <div class="content">
                                <h6 class="country">{{$row->name}}</h6>
                                <p class="color-gray2 mb-0"> {{$row->address}} </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class=" d-flex align-items-center my-2">
                            <span class="icon-outer">
                                <i class="fa-regular fa-mobile"></i>
                            </span>
                            <div class="content">
                                <h6 class="country"> {{__('web.contact_phone')}}    </h6>
                                <p class="color-gray2 mb-0"> {{$row->phone}}  </p>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    @endforeach
@else
    @include('web.pages.components.not_found',['message'=>__('web.not_found_addresses')])
@endif
