/**
  * Show the form for creating a new room
  *
  * @return Response
  */
 public function getCreate()
 {
     $rooms = Room::where('property_id', Property::getLoggedId())->where('type', '<>', 'plan')->lists('name', 'id');
     $properties = Property::lists('name', 'id');
     $formulaTypes = Room::$formulaTypes;
     return View::make('rooms.create', compact('properties', 'rooms', 'formulaTypes'));
 }
 /**
  * Show the form for creating a new propertieschannel
  *
  * @return Response
  */
 public function getCreate()
 {
     $properties = Property::lists('name', 'id');
     $channels = Channel::lists('name', 'id');
     return View::make('properties_channels.create', compact('channels', 'properties'));
 }
示例#3
0
 Route::get('show/receipts', array('as' => 'show/receipts', 'uses' => 'HousController@showReceipts'));
 //receipts
 Route::get('show/receipts/index', array('as' => 'show/receipts/index', 'uses' => 'HousController@showReceipts'));
 //View specific receipt
 Route::get('show/receipts/{id}', array('as' => 'show/receipts', 'uses' => 'BillController@showReceipt'));
 //billigs
 Route::get('api/statistics', array('as' => 'api/statistics', 'uses' => 'HousController@statistics'));
 Route::get('payments-bytenant', array('as' => 'payments-bytenant', 'uses' => 'BillController@selectToBill'));
 Route::get('redirect/back', array('as' => 'redirect/back'), function () {
     return Redirect::back();
 });
 Route::get('payments-totenant', array('as' => 'payments-totenant', 'uses' => 'BillController@selectToPay'));
 Route::get('api/preports', array('as' => 'api/preports', 'uses' => 'PaymentController@Reports'));
 Route::post('api/spreport', array('as' => 'api/spreport', 'uses' => 'PaymentController@getFilteredReport'));
 Route::get('api/dropdown', array('as' => 'api/dropdown', function () {
     $properties = Property::lists('name');
     return $properties;
 }));
 Route::get('ninvoice', array('as' => 'ninvoice', function () {
     $invoices = Invoice::where('agent_id', '=', Sentry::getUser()->id)->where('balance', '>', 0)->with('invoicedetail')->orderBy('id', 'desc')->get();
     return $invoices;
 }));
 Route::get('nreceipts', array('as' => 'nreceipts', function () {
     $invoices = Receipt::where('agent_id', '=', Sentry::getUser()->id)->where('amountpaid', '>', 0)->orderBy('id', 'desc')->get();
     return $invoices;
 }));
 Route::get('nrefunds', array('as' => 'nrefunds', function () {
     $invoices = Invoice::where('agent_id', '=', Sentry::getUser()->id)->where('type', '=', 'refund')->with('invoicedetail')->orderBy('id', 'desc')->get();
     return $invoices;
 }));
 Route::get('api/property/{id}', array('as' => 'api/property', 'uses' => 'HousController@getHouses'));