Module review and home page syntax fixed
This commit is contained in:
parent
5134037035
commit
f456dd3d43
@ -11,6 +11,7 @@
|
|||||||
@include('partials.modules.bar')
|
@include('partials.modules.bar')
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@if ($paid)
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="content-header no-padding-left">
|
<div class="content-header no-padding-left">
|
||||||
<h3>{{ trans('modules.top_paid') }}</h3>
|
<h3>{{ trans('modules.top_paid') }}</h3>
|
||||||
@ -24,7 +25,9 @@
|
|||||||
@include('partials.modules.no_apps')
|
@include('partials.modules.no_apps')
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if ($new)
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="content-header no-padding-left">
|
<div class="content-header no-padding-left">
|
||||||
<h3>{{ trans('modules.new') }}</h3>
|
<h3>{{ trans('modules.new') }}</h3>
|
||||||
@ -38,7 +41,9 @@
|
|||||||
@include('partials.modules.no_apps')
|
@include('partials.modules.no_apps')
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if ($free)
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="content-header no-padding-left">
|
<div class="content-header no-padding-left">
|
||||||
<h3>{{ trans('modules.top_free') }}</h3>
|
<h3>{{ trans('modules.top_free') }}</h3>
|
||||||
@ -52,5 +57,6 @@
|
|||||||
@include('partials.modules.no_apps')
|
@include('partials.modules.no_apps')
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
@ -14,9 +14,8 @@
|
|||||||
@endfor
|
@endfor
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="description">{{ \Carbon\Carbon::parse($review->created_at)->format('F d, Y') }}</span>
|
<span class="description">{{ Date::parse($review->created_at)->format($date_format) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.user-block -->
|
|
||||||
<p>
|
<p>
|
||||||
{!! nl2br($review->text) !!}
|
{!! nl2br($review->text) !!}
|
||||||
</p>
|
</p>
|
||||||
@ -24,14 +23,17 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
@stack('pagination_start')
|
@stack('pagination_start')
|
||||||
|
|
||||||
@php
|
@php
|
||||||
$review_first_item = count($reviews->data) > 0 ? ($reviews->current_page - 1) * $reviews->per_page + 1 : null;
|
$review_first_item = count($reviews->data) > 0 ? ($reviews->current_page - 1) * $reviews->per_page + 1 : null;
|
||||||
$review_last_item = count($reviews->data) > 0 ? $review_first_item + count($reviews->data) - 1 : null;
|
$review_last_item = count($reviews->data) > 0 ? $review_first_item + count($reviews->data) - 1 : null;
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($review_first_item)
|
@if ($review_first_item)
|
||||||
<div class="pull-left" style="margin-top: 7px;">
|
<div class="pull-left" style="margin-top: 7px;">
|
||||||
<small>{{ trans('pagination.showing', ['first' => $review_first_item, 'last' => $review_last_item, 'total' => $reviews->total, 'type' => strtolower(trans('modules.tab.reviews'))]) }}</small>
|
<small>{{ trans('pagination.showing', ['first' => $review_first_item, 'last' => $review_last_item, 'total' => $reviews->total, 'type' => strtolower(trans('modules.tab.reviews'))]) }}</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<ul class="pagination pagination-sm no-margin">
|
<ul class="pagination pagination-sm no-margin">
|
||||||
{{-- Previous Page Link --}}
|
{{-- Previous Page Link --}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user