feat(laporan-permohonan): perbaiki query dan aktifkan breadcrumbs
- Mengubah query pada metode collection untuk menggunakan Permohonan::query() alih-alih Permohonan::with(). - Mengaktifkan tampilan breadcrumbs pada halaman laporan permohonan.
This commit is contained in:
@@ -19,8 +19,7 @@
|
|||||||
|
|
||||||
public function collection()
|
public function collection()
|
||||||
{
|
{
|
||||||
$query = Permohonan::with(['user', 'branch', 'tujuanPenilaian', 'jenisFasilitasKredit', 'jenisPenilaian'])
|
$query = Permohonan::query();
|
||||||
->select('permohonan.*');
|
|
||||||
|
|
||||||
// Apply role-based filtering
|
// Apply role-based filtering
|
||||||
if (!Auth::user()->hasAnyRole(['administrator'])) {
|
if (!Auth::user()->hasAnyRole(['administrator'])) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@extends('layouts.main')
|
@extends('layouts.main')
|
||||||
|
|
||||||
@section('breadcrumbs')
|
@section('breadcrumbs')
|
||||||
{{-- {{ Breadcrumbs::render('laporan-permohonan') }}--}}
|
{{ Breadcrumbs::render('laporan-permohonan') }}
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|||||||
Reference in New Issue
Block a user