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.
* added slug * filter doctors by speciality or search * simple doctor profile page. * update test * remove unneded file * Apply fixes from StyleCI
- Loading branch information
1 parent
597ea69
commit 6ef1dbb
Showing
17 changed files
with
181 additions
and
224 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
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 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,20 @@ | ||
@extends('layouts.master') | ||
|
||
@section('title', $doctor->full_name) | ||
|
||
@section('content') | ||
<div class="page-header border-bottom box-shadow-nav pb-1"> | ||
<div class="container"> | ||
<div class="text-center"> | ||
<img src="{{ asset('img/example-avatar.png') }}" alt="avatar" class="img-responsive mr-2" width="50" height="50"> | ||
<h5 class="pt-2 text-dark">{{$doctor->full_name}}</h5> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<main class="container"> | ||
<div class="row my-3 p-3"> | ||
|
||
</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 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
Oops, something went wrong.