public function postAddProperty()
 {
     $validator = Validator::make(Input::all(), Properties::$rules, Properties::$errmsgs);
     if ($validator->fails()) {
         return Redirect::route('addproperty')->withErrors($validator)->withInput();
     }
     $prop = Properties::create(['serialno' => Input::get('serialno'), 'propname' => Input::get('propname'), 'propdesc' => Input::get('propdesc'), 'propcondition' => 'Good', 'propstatus' => 'In stock', 'prop_category' => Input::get('category'), 'propcost' => Input::get('propcost'), 'dateacq' => Input::get('dateacq')]);
     $lastid = Properties::orderBy('id', 'desc')->first();
     $audit = AuditTrail::create(['user_id' => Auth::id(), 'role' => 'Property Management Admin', 'action' => 'added a new property "' . $lastid->propname . '" with an ID of ' . $lastid->id . '.']);
     return Redirect::route('addproperty')->with('alert', 'success|Property has been successfully added.');
 }