LD пре 5 година
родитељ
комит
1ec47f1126

+ 1 - 1
app/Http/Controllers/LaborReportController.php

@@ -34,7 +34,7 @@ class LaborReportController extends Controller
      */
     public function index(Request $request)
     {
-        if(!Gate::allows('人事管理-临时工报表')){ return redirect(url('/'));  }
+        if(!Gate::allows('人事管理-临时工报表')){ view('personnel/index');  }
         $paginateParams=$request->input();
         $user=Auth::user();
         if (!$user)return redirect('/');

+ 1 - 1
app/Http/Controllers/PersonnelController.php

@@ -259,7 +259,7 @@ class PersonnelController extends Controller
 
     //考勤
     public function createReplenishClock(){
-        if(!Gate::allows('人事管理-录入补卡')){ return redirect(url('/'));  }
+        if(!Gate::allows('人事管理-录入补卡')){ return view('personnel/checkRelating/index');  }
         return view('personnel/checking-in/createReplenishClock');
     }
 

+ 14 - 0
resources/views/personnel/checkRelating/index.blade.php

@@ -0,0 +1,14 @@
+
+@extends('layouts.app')
+@section('title')人事管理-打卡相关@endsection
+
+@section('content')
+    @component('personnel.menu')@endcomponent
+    @component('personnel.checking-in.menuChecking-in')@endcomponent
+
+    <div class="d-none container-fluid" id="list"></div>
+@endsection
+
+@section('lastScript')
+
+@endsection

+ 13 - 0
resources/views/personnel/index.blade.php

@@ -0,0 +1,13 @@
+
+@extends('layouts.app')
+@section('title')人事管理@endsection
+
+@section('content')
+    @component('personnel.menu')@endcomponent
+
+    <div class="d-none container-fluid" id="list"></div>
+@endsection
+
+@section('lastScript')
+
+@endsection