diff --git a/app/Http/Controllers/CitasController.php b/app/Http/Controllers/CitasController.php index a664895..daac93b 100644 --- a/app/Http/Controllers/CitasController.php +++ b/app/Http/Controllers/CitasController.php @@ -19,7 +19,7 @@ public function index() public function create() { - $User =User::get(); + $User = User::get(); return view('admin.Citas.create'); } @@ -32,12 +32,14 @@ public function store(Request $request) public function show($id) { - $Citas =Citas::find($id); + $Citas = Citas::find($id); return view('admin.Citas.show')->with('Citas', $Citas); } public function edit($id) { + $User = User::all(); + $Citas =Citas::find($id); return view('admin.Citas.edit')->with('Citas', $Citas); } diff --git a/resources/views/admin/Citas/index.blade.php b/resources/views/admin/Citas/index.blade.php index c46114e..21de742 100644 --- a/resources/views/admin/Citas/index.blade.php +++ b/resources/views/admin/Citas/index.blade.php @@ -29,7 +29,7 @@