@extends('layouts.vertical', ['subtitle' => 'Reklame'])

@section('css')
@vite(['node_modules/gridjs/dist/theme/mermaid.min.css'])
@endsection

@section('content')

@include('layouts.partials/page-title', ['title' => 'Data', 'subtitle' => 'Reklame'])


<div class="card">
    <div class="card-header">
        <h5 class="card-title">Daftar Reklame</h5>
    </div>
    <div class="card-body">
        <div class="row">
            <div class="d-flex justify-content-end gap-10 pb-3">
                @if ($creator)
                    <button class="btn btn-success me-2 width-lg btn-create" data-model="data/advertisements">
                        <i class='bx bxs-file-plus'></i>
                        Create</button>
                    <button class="btn btn-primary width-lg btn-bulk-create" data-model="data/advertisements">
                        <i class='bx bx-upload' ></i>
                        Bulk Create
                    </button>
                @endif
            </div>
            <div>
                <div id="reklame-data-table"
                     data-updater="{{ $updater }}"
                     data-destroyer="{{ $destroyer }}">
                </div>
            </div>
        </div>
    </div>
</div>


@endsection

@section('scripts')
@vite(['resources/js/data/advertisements/data-advertisements.js'])
@endsection