Ejemplo n.º 1
0
 public function getAdd($id)
 {
     $record = Customer::find($id);
     if (count($record) < 0) {
         return redirect::back();
     }
     return view(vw('theme.work.add'), compact('record'))->withTitle('İş Ekle');
 }
Ejemplo n.º 2
0
 public function getTrash()
 {
     $records = Customer::where('status', 'trash')->get();
     $recordsCount = count($records);
     return view(vw('theme.customer.trash'), compact('records', 'recordsCount'))->with(array('title' => 'Silinmiş Müşteriler'));
 }