From 3ecf9cb5b277db0872dcb980aef5f3fcf591d097 Mon Sep 17 00:00:00 2001 From: XSlayer67 Date: Thu, 24 Nov 2022 01:06:31 -0400 Subject: [PATCH] puto david --- app/Http/Controllers/CitasController.php | 6 ++++-- resources/views/admin/Citas/index.blade.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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 @@ {{ $loop->iteration }} {{ $item->fecha_cita }} {{ $item->detalles_cita }} - {{ $item->id_secretaria->name}} + {{ $item->id_secretaria}}