@extends('admin.layouts.master')
@section('title', __('cabbooking::static.fleet_vehicle_documents.fleet_vehicle_documents'))
@section('content')
    <div class="contentbox">
        <div class="inside">
            <div class="contentbox-title">
                <div class="contentbox-subtitle">
                    <h3>{{ __('cabbooking::static.fleet_vehicle_documents.fleet_vehicle_documents') }}</h3>
                    <div class="subtitle-button-group">
                        @can('fleet_document.create')
                            <button class="add-spinner btn btn-outline" data-url="{{ route('admin.vehicleInfoDoc.create') }}">
                                <i class="ri-add-line"></i> {{ __('cabbooking::static.fleet_vehicle_documents.add_new') }}
                            </button>
                        @endcan
                    </div>
                </div>
            </div>
            <div class="fleetDocument-table">
                <x-table :columns="$tableConfig['columns']"
                         :data="$tableConfig['data']"
                         :filters="$tableConfig['filters']"
                         :actions="$tableConfig['actions']"
                         :total="$tableConfig['total']"
                         :bulkactions="$tableConfig['bulkactions']"
                         :viewActionBox="$tableConfig['viewActionBox']"
                         :search="true" />
            </div>
        </div>
    </div>
@endsection
