コード例 #1
0
ファイル: PaymentController.php プロジェクト: emadmrz/Hawk
 /**
  * Created By Dara on 22/12/2015
  * user-accountant admin control
  */
 public function adminIndex($user = null)
 {
     if ($user == null) {
         $payments = Payment::paginate(20);
     } else {
         $payments = $user->payments()->latest()->paginate(20);
     }
     return view('admin.accountant.index', compact('payments', 'user'))->with(['title' => 'Accountant Management']);
 }