forked from mirror/pixelfed
Add places directory blade views
This commit is contained in:
parent
31b6a993c1
commit
e789559b9d
2 changed files with 44 additions and 0 deletions
22
resources/views/discover/places/directory/cities.blade.php
Normal file
22
resources/views/discover/places/directory/cities.blade.php
Normal 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
|
22
resources/views/discover/places/directory/home.blade.php
Normal file
22
resources/views/discover/places/directory/home.blade.php
Normal 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
|
Loading…
Reference in a new issue