public function create(Requests\CreateSignatureRequest $request) { //parse the paste $sig = explode("\t", $request->input('sig_paste')); $signature = new Signature(); $signature->sig_id = $sig[0]; $signature->sig_type = $sig[1]; $signature->sig_group = $sig[2]; $signature->sig_name = $sig[3]; $signature->user_id = Auth::user()->id; $signature->save(); $sheet = new Sheet(); $sheet->site_id = $signature->id; $sheet->modifier = 0; //todo: add site modifer from options $sheet->save(); return redirect()->route('sheets.single', ['id' => $signature->id]); }
public function index(Request $request) { $this->_siteStats(); $this->_totalISK(); $this->_compareBomber(); $this->_compareShips(); $sheets = Sheet::where('is_paid', 1)->get(); view()->share('sheets', $sheets); return $this->view('stats.index'); }