public function carian()
 {
     $tarikh = Carbon::parse(\Input::get('tarikh'));
     $bil = 1;
     $laporans = Laporan::latest('tarikh')->where('tarikh', 'like', $tarikh . '%')->where('user', Auth::user()->username)->latest('tarikh')->get();
     return View('members.technician.carian', compact('bil', 'laporans', 'tarikh'));
 }
 public function index()
 {
     $aduans = Laporan::latest('tarikh')->unassigned()->get();
     $users = User::assignment()->lists('nama', 'username');
     $bil = 1;
     return View('members.supervisor.index', compact('aduans', 'users', 'bil'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $cawangan = Cawangan::lists('nama', 'id');
     $peralatan = Peralatan::orderBy('nama', 'asc')->lists('nama', 'id');
     $aduans = Laporan::latest('tarikh')->today()->get();
     $bil = 1;
     return View('members.user.index', compact('cawangan', 'peralatan', 'aduans', 'bil'));
 }