This repository has been archived by the owner on Mar 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter doctors by speciality or search
- Loading branch information
1 parent
a9fb8e2
commit 4221623
Showing
7 changed files
with
82 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@extends('layouts.master') | ||
|
||
@section('title', 'All doctors') | ||
|
||
@section('content') | ||
<div class="page-header border-bottom box-shadow-nav"> | ||
<div class="container text-secondary"> | ||
<a href="/doctors" class="badge badge-info">All</a> | ||
@foreach ($specialities as $speciality) | ||
<a href="/doctors/{{$speciality->slug}}" class="badge badge-info">{{ $speciality->name }}</a> | ||
@endforeach | ||
</div> | ||
</div> | ||
|
||
<main class="container"> | ||
<div class="row my-3 p-3"> | ||
|
||
@forelse ($doctors as $doctor) | ||
<div class="col-md-4"> | ||
<div class="media"> | ||
<img src="{{ asset('img/example-avatar.png') }}" alt="avatar" class="img-responsive mr-2" width="50" height="50"> | ||
<p class="media-body pb-3 mb-3"> | ||
<a href="/doctors/{{$doctor->speciality->slug}}/{{$doctor->slug}}" class="d-block font-weight-bold"> | ||
{{ $doctor->full_name }} | ||
</a> | ||
<a href="/{{$doctor->group->slug}}" class="text-secondary font-weight-light"> | ||
{{ $doctor->group->name }} | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
@empty | ||
<div class="col-md-12"> | ||
<h4 class="text-center">There are no relevant results at this time</h4> | ||
</div> | ||
@endforelse | ||
|
||
{{ $doctors->links('vendor.pagination.bootstrap-4') }} | ||
|
||
</div> | ||
</main> | ||
@endsection |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters