diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index 927a21b..ee14fa1 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -704,6 +704,7 @@ class WorkerController extends Controller $Query = $Query->OrderBy('updated_at')->paginate(3); + return view('workers.favorite', compact('Query', 'Query_count', 'Job_title')); diff --git a/app/Http/Requests/JobTitlesRequest.php b/app/Http/Requests/JobTitlesRequest.php index e8edb01..187ed0d 100644 --- a/app/Http/Requests/JobTitlesRequest.php +++ b/app/Http/Requests/JobTitlesRequest.php @@ -34,6 +34,12 @@ class JobTitlesRequest extends FormRequest 'min:0', 'max:9999999', ], + 'sort' => [ + 'numeric', + 'min:0', + 'max:9999999', + ] + ]; } diff --git a/resources/views/admin/job_titles/form.blade.php b/resources/views/admin/job_titles/form.blade.php index 94246d1..d15c952 100644 --- a/resources/views/admin/job_titles/form.blade.php +++ b/resources/views/admin/job_titles/form.blade.php @@ -45,13 +45,18 @@ @php $sort_num = 100; @endphp -