create history api

This commit is contained in:
2025-11-26 13:53:22 +03:30
parent 6a8d27b2c3
commit 8fba75a684
7 changed files with 44 additions and 11 deletions

View File

@@ -22,7 +22,13 @@ class ProvinceOfficeController extends Controller
{
$user = auth()->user();
$query = Harim::query()
->where('edareh_shahri_id', '=', $user->edarate_shahri_id);
->where('edareh_shahri_id', '=', $user->edarate_shahri_id)
->orderByRaw("
CASE state
WHEN 1 THEN 1
ELSE 2
END
");
$data = DataTableFacade::run(
$query,