@extends('layouts.master')
@section('content')
    <div class="container-xxl flex-grow-1 container-p-y">
        <h4 class="fw-bold py-3 mb-4"><a href="{{ route('dashboard') }}"><i class="menu-icon tf-icons bx bx-home-circle"></i>
                Home </a>/ Plan List</h4>

        <div class="row">
            <div class="col-md-12">
                <div class="card mb-4">

                    <div class="d-flex justify-content-between">
                        <h5 class="card-header">Plan List</h5>
                        <a href="{{ route('plan.add') }}" align="right">                            
                            <button class="btn btn-primary">
                                Add Plan
                            </button>
                        </a>
                    </div>
                    <hr>

                    <!-- Account -->
                    <div class="card" style="margin: 10px;">
                        <div class="table-responsive text-nowrap">
                            <table class="table" id="dataTableExample1" id="datatable">
                                {{ $dataTable->table() }}
                            </table>
                        </div>
                    </div>
                    <!-- /Account -->
                </div>
            </div>
        </div>
    </div>

    @push('scripts')
        {{ $dataTable->scripts() }}
    @endpush
@endsection
