X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar-X/app/Http/Controllers/Admin
home
/
gfecatvj
/
sites
/
realesbar-X
/
app
/
Http
/
Controllers
/
Admin
/
📁
..
📄
DashController.php
(5.06 KB)
📄
PropertyController.php
(1.66 KB)
Editing: DashController.php
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\User; use App\Property; class DashController extends Controller { public function __construct() { $this->user_model = new User; $this->property_model = new Property; } /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $users = User::all(); $users = $users->diff(User::whereIn('id', [1, 2, 3])->get()); $data = [ 'title' => 'Admin dash', 'meta_description' =>'Admin dashboard', 'view' => 'Dash', 'users' => $users, ]; $data['property'] = $this->property_model->property_list_by_status($status = array(2,3)); return view('admin.dash',$data); } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { // } public function createProperty() { $data = [ 'title' => 'Admin dash', 'meta_description' =>'Admin dashboard', 'view' => 'addproperty', ]; return view('admin.dash',$data); } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { // } public function showProperties() { $data = [ 'title' => 'feedback', 'meta_description' => 'Property on Local rent and buy', 'view' => 'properties', ]; $data['property'] = $this->property_model->property_list_by_status($status = array(2,3)); return view('admin.dash', $data); } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function showProperty($id) { $data = [ 'title' => 'feedback', 'meta_description' => 'Property on Local rent and buy', 'view' => 'property', ]; $data['property'] = $this->property_model->property_details_by_id($id); return view('admin.dash', $data); } public function showAgents() { $data = [ 'title' => 'feedback', 'meta_description' => 'Property on Local rent and buy', 'view' => 'agents', ]; //$data['agent'] = $this->User_model->property_details_by_id($id); return view('admin.dash', $data); } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function showAgent($id) { $data = [ 'title' => 'feedback', 'meta_description' => 'Property on Local rent and buy', 'view' => 'agent', ]; $data['agent'] = $this->User_model->property_details_by_id($id); return view('admin.dash', $data); } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function showUser($id) { $data = [ 'title' => 'feedback', 'meta_description' => 'Property on Local rent and buy', 'view' => 'user', ]; $data['user'] = $this->property_model->property_details_by_id($id); return view('admin.dash', $data); } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function showMsgs() { $data = [ 'title' => 'feedback', 'meta_description' => 'Property on Local rent and buy', 'view' => 'msgs', ]; //$data['user'] = $this->property_model->property_details_by_id($id); return view('admin.dash', $data); } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function showMsg($id) { $data = [ 'title' => 'feedback', 'meta_description' => 'Property on Local rent and buy', 'view' => 'msg', ]; //$data['user'] = $this->property_model->property_details_by_id($id); return view('admin.dash', $data); } /** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { // } /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // } }
Upload File
Create Folder