Fix missing LGU/tenant relations and display in tables; Add LGU hierarchy tests
This commit is contained in:
@@ -33,7 +33,7 @@ class AdminDropOffPointController extends ApiController
|
||||
$perPage = (int) $request->input('per_page', 25);
|
||||
|
||||
$points = DropOffPoint::query()
|
||||
->with('barangay')
|
||||
->with(['barangay', 'tenant'])
|
||||
->when($request->filled('status'), fn ($q) => $q->where('status', $request->string('status')))
|
||||
->when($request->filled('barangay_id'), fn ($q) => $q->where('barangay_id', $request->integer('barangay_id')))
|
||||
->when($request->filled('q'), function ($q) use ($request) {
|
||||
|
||||
Reference in New Issue
Block a user