Skip to content

Commit

Permalink
Merge pull request #85 from Sanium/L-85
Browse files Browse the repository at this point in the history
L-85 Puste tabele
  • Loading branch information
baloo1379 authored May 18, 2020
2 parents 1402ce4 + ffe8814 commit f3c7096
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
5 changes: 4 additions & 1 deletion resources/lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
"Number of application": "Liczba zgłoszeń",
"Your applications": "Twoje zgłoszenia",
"You have canceled your application for position :name.": "Anulowałeś swoją aplikację na stanowisko :name.",
"The given data was invalid.": "Podane dane były nieprawidłowe.",
"Registration failed. Contact the administrator.": "Rejestracja nie udała się. Skontaktuj się z administratorem.",
"The given data was invalid.": "Podane dane były nieprawidłowe."
"A bit empty here...": "Trochę tu pusto...",
"Find new job": "Znajdź nową pracę",
"Nobody has applied to your offers yet.": "Jeszcze nikt nie zaaplikował na twoje ogłoszenia."
}
18 changes: 14 additions & 4 deletions resources/views/profile/client/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<th></th>
</tr>
</thead>
@foreach($jors as $job)
<tbody>
<tbody>
@forelse($jors as $job)
<tr>
<td>
<a class="blue-text" href="/#/details/{{ $job->offer->id }}">
Expand All @@ -60,8 +60,18 @@
</div>
</td>
</tr>
</tbody>
@endforeach
@empty
<tr>
<td colspan="4">
<div class="text-center m-4">
<p><i class="fas fa-box-open fa-6x"></i></p>
<h4 class="mb-3">@lang('A bit empty here...') </h4>
<a class="btn btn-amber" href="{{ route('welcome') }}">@lang('Find new job')</a>
</div>
</td>
</tr>
@endforelse
</tbody>
</table>
<div class="d-flex justify-content-center">
{{ $jors->links('components.pagination') }}
Expand Down
24 changes: 19 additions & 5 deletions resources/views/profile/employer/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<div class="tab-pane fade show active" id="offers-tab" role="tabpanel">
<div class="card-title d-flex justify-content-end align-items-center">
<a class="btn light-blue darken-2 white-text px-3"
href="{{route('offers.create')}}">@lang('Add new offer')
href="{{ route('offers.create') }}">@lang('Add new offer')
</a>
</div>
<table class="table">
Expand All @@ -65,7 +65,7 @@
</tr>
</thead>
<tbody class="table-hover">
@foreach( $offers as $offer )
@forelse( $offers as $offer )
<tr>
<td>
<a class="btn btn-link blue-text btn-lg"
Expand Down Expand Up @@ -109,7 +109,17 @@
</div>
</td>
</tr>
@endforeach
@empty
<tr>
<td colspan="3">
<div class="text-center m-4">
<p><i class="fas fa-box-open fa-6x"></i></p>
<h4 class="mb-3">@lang('A bit empty here...') </h4>
<a class="btn btn-amber" href="{{ route('offers.create') }}">@lang('Add new offer')</a>
</div>
</td>
</tr>
@endforelse
</tbody>
</table>
<div class="d-flex justify-content-center">
Expand All @@ -119,7 +129,7 @@
<div class="tab-pane fade" id="applications-tab" role="tabpanel">
<div class="accordion md-accordion accordion-blocks" id="accordion" role="tablist"
aria-multiselectable="true">
@foreach($offers as $offer)
@forelse($offers as $offer)
@if ( $offer->jobOfferResponses->count() > 0 )
<div class="card border-light z-depth-0">
<div class="card-header" role="tab">
Expand Down Expand Up @@ -181,7 +191,11 @@ class="fas fa-check-circle ml-1 text-muted"></i>
</div>
</div>
@endif
@endforeach
@empty
<div class="text-center my-3">
<h4>@lang('Nobody has applied to your offers yet.')</h4>
</div>
@endforelse
</div>
</div>
</div>
Expand Down

0 comments on commit f3c7096

Please sign in to comment.