@extends('web.layouts.layout')
@section('content')


    <main>


        <!-- ---------- Start breadcrumb ----------- -->
        @include('web.pages.components.header.header')



        <section class="profile-pg pb-4">
            <div class="container">
                <div class="row">
                    <div class="col-lg-3">
                        @include('web.pages.profile.layout.sidebar')
                    </div>
                    <div class="col-lg-9">
                        <div class="payment-tab">
                            <div class="line-title mb-4"> <h5 class="bg-white pe-3"> <i class="far fa-credit-card small me-2"></i> {{__('web.card')}} </h5> </div>

                        @if(count($cards))
                            <div class="payment-cards p-4 bg-light1 rounded-3">
                                @foreach($cards as $row)
                                    @include('web.pages.components.userCard',['card'=>$row])
                                @endforeach
                                <a href="{{route('web.card.create')}}" class="butn butn-line col-lg-4">
                                    <span> <i class="far fa-plus me-2"></i> {{__('web.add_new_card')}} </span>
                                </a>
                            </div>
                        @else
                            <div class="payment-empty py-5 my-5">

                                @include('web.pages.components.not_found_profile',['message'=>__('web.not_found_cards')])

                                <a href="{{route('web.card.create')}}" class="butn butn-line col-lg-4">
                                    <span> <i class="far fa-plus me-2"></i> {{__('web.add_new_card')}} </span>
                                </a>
                            </div>
                        @endif
                            </div>
                        </div>
                </div>
            </div>
        </section>




    </main>

@endsection
@section('inject_js')
    <script src="{{url('')}}/assets/web/js/custom/address.js"></script>
@endsection
