Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Enhancement #41: showing doctors list in apointment page
Browse files Browse the repository at this point in the history
  • Loading branch information
arindamkabir committed Aug 17, 2019
1 parent 6d8a92a commit ebf6809
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PROJECT CODE/app/Http/Controllers/DoctorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DoctorController extends Controller
//show all doctors
public function index(){
$doctors = DB::table('doctors')->get();
return view('doctor.doctors', ['doctor' => $doctors]);
return view('doctor.doctors', ['doctors' => $doctors]);

}

Expand Down
9 changes: 9 additions & 0 deletions PROJECT CODE/resources/views/doctor/doctors.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
@section('content')
<div class="container">

<div class="list-group">
<a href="#" class="list-group-item list-group-item-action">Doctors</a>

@foreach($doctors as $doctor)


<a href="#" class="list-group-item list-group-item-action list-group-item-info">{{$doctor->doc_name}}</a>
@endforeach

</div>


</div>
Expand Down

0 comments on commit ebf6809

Please sign in to comment.