create history api
This commit is contained in:
@@ -26,7 +26,15 @@ class TechnicalDeputyController extends Controller
|
||||
public function index(Request $request): JsonResponse
|
||||
{
|
||||
$query = Harim::query()
|
||||
->where('province_id', '=', auth()->user()->province_id);
|
||||
->where('province_id', '=', auth()->user()->province_id)
|
||||
->orderByRaw("
|
||||
CASE state
|
||||
WHEN 3 THEN 1
|
||||
WHEN 6 THEN 2
|
||||
WHEN 14 THEN 3
|
||||
ELSE 4
|
||||
END
|
||||
");
|
||||
|
||||
$data = DataTableFacade::run(
|
||||
$query,
|
||||
|
||||
Reference in New Issue
Block a user