Skip to content

Commit

Permalink
Merge pull request #275 from NizarBerjawi/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
NizarBerjawi authored Nov 20, 2021
2 parents 217aaa5 + e3dd787 commit 44bb424
Show file tree
Hide file tree
Showing 8 changed files with 220 additions and 207 deletions.
4 changes: 4 additions & 0 deletions resources/src/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@

.swagger-ui .info .title small.version-stamp pre.version {
background-color: #89bf04 !important;
}

.swagger-ui .wrapper {
padding: 0;
}
22 changes: 11 additions & 11 deletions resources/views/additionalResources/continents.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@extends('layouts.base')

@section('content')
<section class="section">
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Continents</p>
<table class='table is-fullwidth'>
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Continents</p>

<div class="table-container">
<table class='table'>
<tr>
<th>Code</th>
<th>Name</th>
Expand All @@ -21,9 +21,9 @@
@endforeach
</tbody>
</table>
{{ $continents->links('partials.pagination') }}
</article>

</div>
</section>
</div>

{{ $continents->onEachSide(1)->links('partials.pagination') }}
</article>
</div>
@endsection
20 changes: 10 additions & 10 deletions resources/views/additionalResources/countries.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@extends('layouts.base')

@section('content')
<section class="section">
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Countries</p>
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Countries</p>

<table class='table is-fullwidth'>
<div class="table-container">
<table class='table'>
<tr>
<th>Code</th>
<th>Name</th>
Expand All @@ -21,9 +21,9 @@
@endforeach
</tbody>
</table>
{{ $countries->links('partials.pagination') }}
</article>

</div>
</section>
</div>

{{ $countries->onEachSide(1)->links('partials.pagination') }}
</article>
</div>
@endsection
46 changes: 27 additions & 19 deletions resources/views/additionalResources/featureCodes.blade.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
@extends('layouts.base')

@section('content')
<section class="section">
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Feature Codes</p>
<p class="panel-tabs">
<a href={{ route('featureCodes') }}
class="{{ !request()->has('filter') ? 'is-active' : '' }}">All</a>
@foreach ($featureClasses as $featureClass)
<a href="{{ route('featureCodes') . '?filter[featureClassCode]=' . $featureClass->code }}"
class="{{ $featureClass->code === \Illuminate\Support\Arr::get(request()->get('filter'), 'featureClassCode') ? 'is-active' : '' }}"">
{{ $featureClass->code }}
</a>
@endforeach
</p>
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Feature Codes</p>
<p class="panel-tabs">
<a href={{ route('featureCodes') }} @class([
'is-active' => !request()->has('filter'),
])>
All
</a>

<table class='table is-fullwidth'>
@foreach ($featureClasses as $featureClass)
<a href="{{ route('featureCodes', ['filter' => ['featureClassCode' => $featureClass->code]]) }}"
@class([
'is-active' =>
$featureClass->code === request()->input('filter.featureClassCode'),
])>
{{ $featureClass->code }}
</a>
@endforeach
</p>

<div class="table-container">
<table class='table'>
<tr class="is-selected has-text-centered has-text-weight-bold">
<td colspan="3">
{{ $selectedFeatureClass ?? 'ALL' }}
Expand All @@ -38,8 +45,9 @@ class="{{ $featureClass->code === \Illuminate\Support\Arr::get(request()->get('f
@endforeach
</tbody>
</table>
{{ $featureCodes->links('partials.pagination') }}
</article>
</div>
</section>
</div>

{{ $featureCodes->onEachSide(1)->links('partials.pagination') }}
</article>
</div>
@endsection
21 changes: 11 additions & 10 deletions resources/views/additionalResources/languages.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@extends('layouts.base')

@section('content')
<section class="section">
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Languages</p>
<table class='table is-fullwidth'>
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Languages</p>

<div class="table-container">
<table class='table'>
<tr>
<th>Name</th>
<th>ISO639-1</th>
Expand All @@ -25,8 +25,9 @@
@endforeach
</tbody>
</table>
{{ $languages->links('partials.pagination') }}
</article>
</div>
</section>
</div>

{{ $languages->onEachSide(1)->links('partials.pagination') }}
</article>
</div>
@endsection
21 changes: 11 additions & 10 deletions resources/views/additionalResources/timeZones.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@extends('layouts.base')

@section('content')
<section class="section">
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Time Zones</p>
<table class='table is-fullwidth'>
<div class="content">
<article class="panel pb-4">
<p class="panel-heading">Time Zones</p>

<div class="table-container">
<table class='table'>
<tr>
<th>Code</th>
<th>Time Zone</th>
Expand All @@ -23,8 +23,9 @@
@endforeach
</tbody>
</table>
{{ $timeZones->links('partials.pagination') }}
</article>
</div>
</section>
</div>

{{ $timeZones->onEachSide(1)->links('partials.pagination') }}
</article>
</div>
@endsection
Loading

0 comments on commit 44bb424

Please sign in to comment.