87 lines
3.1 KiB
PHP
87 lines
3.1 KiB
PHP
![]() |
<x-default-layout>
|
||
|
|
||
|
@section('title')
|
||
|
Data Subrogasi Jamkrindo
|
||
|
@endsection
|
||
|
|
||
|
@section('breadcrumbs')
|
||
|
{{ Breadcrumbs::render('pencatatan.subrogasi-jamkrindo') }}
|
||
|
@endsection
|
||
|
|
||
|
<div class="card">
|
||
|
<!--begin::Card header-->
|
||
|
<div class="card-header border-0 pt-6">
|
||
|
<!--begin::Card title-->
|
||
|
<div class="card-title">
|
||
|
<!--begin::Search-->
|
||
|
<div class="d-flex align-items-center position-relative my-1">
|
||
|
{!! getIcon('magnifier', 'fs-3 position-absolute ms-5') !!}
|
||
|
<input type="text" data-kt-subrogasi_jamkrindo-table-filter="search" class="form-control form-control-solid w-250px ps-13" placeholder="Search subrogasi_jamkrindo" id="mySearchInput"/>
|
||
|
</div>
|
||
|
<!--end::Search-->
|
||
|
</div>
|
||
|
<!--begin::Card title-->
|
||
|
|
||
|
<!--begin::Card toolbar-->
|
||
|
<div class="card-toolbar">
|
||
|
<!--begin::Toolbar-->
|
||
|
<div class="d-flex justify-content-end" data-kt-subrogasi_jamkrindo-table-toolbar="base">
|
||
|
<!--begin::Add subrogasi_jamkrindo-->
|
||
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#kt_modal_add_subrogasi_jamkrindo">
|
||
|
{!! getIcon('plus', 'fs-2', '', 'i') !!}
|
||
|
Add Subrogasi Jamkrindo
|
||
|
</button>
|
||
|
<!--end::Add subrogasi_jamkrindo-->
|
||
|
</div>
|
||
|
<!--end::Toolbar-->
|
||
|
|
||
|
<!--begin::Modal-->
|
||
|
<livewire:writeoff::subrogasi-jamkrindo.subrogasi-jamkrindo-modal/>
|
||
|
<!--end::Modal-->
|
||
|
</div>
|
||
|
<!--end::Card toolbar-->
|
||
|
</div>
|
||
|
<!--end::Card header-->
|
||
|
|
||
|
<!--begin::Card body-->
|
||
|
<div class="card-body py-4">
|
||
|
<!--begin::Table-->
|
||
|
<div class="table-responsive">
|
||
|
{{ $dataTable->table() }}
|
||
|
</div>
|
||
|
<!--end::Table-->
|
||
|
</div>
|
||
|
<!--end::Card body-->
|
||
|
</div>
|
||
|
|
||
|
@push('scripts')
|
||
|
{{ $dataTable->scripts() }}
|
||
|
<script>
|
||
|
document.getElementById('mySearchInput').addEventListener('keyup', function () {
|
||
|
window.LaravelDataTables['subrogasi-jamkrindo-table'].search(this.value).draw();
|
||
|
});
|
||
|
document.addEventListener('livewire:initialized', function () {
|
||
|
Livewire.on('success', function () {
|
||
|
$('#kt_modal_add_subrogasi_jamkrindo').modal('hide');
|
||
|
window.LaravelDataTables['subrogasi-jamkrindo-table'].ajax.reload();
|
||
|
});
|
||
|
});
|
||
|
|
||
|
Inputmask.extendAliases({
|
||
|
'currency': {
|
||
|
autoUnmask: true,
|
||
|
allowPlus: true,
|
||
|
allowMinus: true,
|
||
|
}
|
||
|
});
|
||
|
|
||
|
$(function(){
|
||
|
$('#kt_modal_add_subrogasi_jamkrindo').on('hidden.bs.modal', function () {
|
||
|
$(this).find('form').trigger('reset');
|
||
|
})
|
||
|
});
|
||
|
</script>
|
||
|
@endpush
|
||
|
|
||
|
</x-default-layout>
|