public function our_staff() { $personals = Personal::all(); $victories = Victory::orderBy('created_at', 'DESC')->limit(7)->get(); return View::make('pages.ourstaff', compact('personals', 'victories')); }
public function index($registros = 5) { $datos = Personal::paginate($registros); $personal = Personal::all(); return View::make('personal.index', compact("datos"), array('personal' => $personal)); }
/** * Remove the specified employee from storage. */ public function export() { $ben = Personal::all()->get()->toArray(); $data = $ben; Excel::create('ong' . time(), function ($excel) use($data) { $excel->sheet('Personales', function ($sheet) use($data) { $sheet->fromArray($data); }); })->store('xls')->download('xls'); Activity::log(['contentId' => 'All', 'user_id' => Auth::admin()->get()->id, 'contentType' => 'Personal', 'action' => 'Export ', 'description' => 'Exportacion de Personal', 'details' => 'Usuario: ' . Auth::admin()->get()->name, 'updated' => false]); }
public function admin_index() { $personals = Personal::all(); return View::make('personals.admin_index', compact('personals')); }