create accessor

This commit is contained in:
2025-11-26 16:13:55 +03:30
parent 8fba75a684
commit fb932937dc
5 changed files with 25 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ class GeneralManagerController extends Controller
$query = Harim::query()
->where('province_id', '=', auth()->user()->province_id)
->orderByRaw("
CASE state
CASE state_id
WHEN 4 THEN 1
WHEN 7 THEN 2
WHEN 15 THEN 3