1
0
Fork 0

Add places directory blade views

This commit is contained in:
Daniel Supernault 2019-08-29 19:35:17 -06:00
parent 31b6a993c1
commit e789559b9d
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,22 @@
@extends('layouts.app')
@section('content')
<div class="container mt-5">
<div class="col-12">
<p class="font-weight-bold text-lighter text-uppercase">Cities in {{$places->first()->country}}</p>
<div class="card border shadow-none">
<div class="card-body row pl-md-5 ml-md-5">
@foreach($places as $place)
<div class="col-12 col-md-4 mb-2">
<a href="{{$place->cityUrl()}}" class="text-dark pr-3 b-3">{{$place->name}}</a>
</div>
@endforeach
</div>
<div class="card-footer bg-white pb-0 d-flex justify-content-center">
{{$places->links()}}
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,22 @@
@extends('layouts.app')
@section('content')
<div class="container mt-5">
<div class="col-12">
<p class="font-weight-bold text-lighter text-uppercase">Countries</p>
<div class="card border shadow-none">
<div class="card-body row pl-md-5 ml-md-5">
@foreach($places as $place)
<div class="col-12 col-md-4 mb-2">
<a href="{{$place->countryUrl()}}" class="text-dark pr-3 b-3">{{$place->country}}</a>
</div>
@endforeach
</div>
<div class="card-footer bg-white pb-0 d-flex justify-content-center">
{{$places->links()}}
</div>
</div>
</div>
</div>
@endsection