33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
{{--
|
|
Komponen Header DataTable
|
|
|
|
Usage:
|
|
@include('components.datatable-header', [
|
|
'title' => 'Daftar Pengajuan Aktivitas',
|
|
'description' => 'Berikut adalah daftar pengajuan aktivitas pelayanan dari pengaju ini'
|
|
])
|
|
|
|
Atau dengan slot untuk tombol action:
|
|
@include('components.datatable-header', [
|
|
'title' => 'Daftar Pengajuan Aktivitas',
|
|
'description' => 'Berikut adalah daftar pengajuan aktivitas pelayanan dari pengaju ini',
|
|
'actionButton' => '<a href="#" class="btn btn-primary">Tambah Data</a>'
|
|
])
|
|
--}}
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-12 d-flex justify-content-between align-items-center">
|
|
<div>
|
|
<h4 class="header-title mb-0">{{ $title }}</h4>
|
|
@if(isset($description) && $description)
|
|
<p class="text-muted mb-0">{{ $description }}</p>
|
|
@endif
|
|
</div>
|
|
@if(isset($actionButton) && $actionButton)
|
|
<div>
|
|
{!! $actionButton !!}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|