master branch merge

This commit is contained in:
Cüneyt Şentürk
2020-05-29 14:04:34 +03:00
224 changed files with 3473 additions and 1549 deletions

View File

@ -21,7 +21,7 @@
</div>
<div class="col-xs-12 col-sm-3 text-right">
{!! Form::open(['route' => 'apps.search', 'role' => 'form', 'method' => 'GET', 'class' => 'm-0']) !!}
<input name="keyword" value="{{ isset($keyword) ? $keyword : '' }}" type="text" class="form-control form-control-sm d-inline-block w-auto" placeholder="Search Apps">
<input name="keyword" value="{{ isset($keyword) ? $keyword : '' }}" type="text" class="form-control form-control-sm d-inline-block w-auto" placeholder="{{ trans('general.search_placeholder') }}">
<span class="glyphicon glyphicon-search form-control-feedback"></span>
{!! Form::close() !!}
</div>

View File

@ -30,8 +30,8 @@
<script type="text/javascript"><!--
var url = '{{ url("/") }}';
var app_home = '{{ url("apps/categories") }}';
var app_url = '{{ env("APP_URL") }}';
var app_home = '{{ route("apps.home.index") }}';
var app_url = '{{ config("app.url") }}';
//--></script>
@stack('js')

View File

@ -9,7 +9,7 @@
@php $color = 'bg-green'; @endphp
@if (!$installed[$module->slug])
@php $color = 'bg-yellow'; @endphp
@php $color = 'bg-warning'; @endphp
@endif
<span class="mr--3 float-right">

View File

@ -5,78 +5,38 @@
<div class="media-body">
<div class="media-comment-text">
<div class="d-flex">
<h5 class="mt-0">{{ $review->author }}</h5>
<h5 class="text-right ml-auto">@date($review->created_at)</h5>
<h5 class="mb-0">{{ $review->author }}</h5>
</div>
<p class="text-sm lh-160">{!! nl2br($review->text) !!}</p>
<div class="icon-actions">
<a href="#" class="like active">
<span class="text-yellow">
<div class="d-flex">
<p class="h6 text-muted mb-0">@date($review->created_at)</p>
</div>
<div class="d-flex">
<span class="text-yellow position-absolute top-3 right-3">
@if ($review->rating)
@for($i = 1; $i <= $review->rating; $i++)
<i class="fa fa-star"></i>
@endfor
@for($i = $review->rating; $i < 5; $i++)
<i class="fa fa-star-o"></i>
@if ($review->rating < 5)
@for($i = 1; $i <= 5 - $review->rating; $i++)
<i class="far fa-star"></i>
@endfor
@endif
@else
@for($i = 1; $i <= 5; $i++)
<i class="far fa-star"></i>
@endfor
</span>
</a>
@endif
</span>
</div>
<div class="d-flex">
<p class="mt-2 mb-0 text-sm lh-160">{!! nl2br($review->text) !!}</p>
</div>
</div>
</div>
</div>
@endforeach
@php
$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;
@endphp
@endif
@if (!empty($review_first_item))
@stack('pagination_start')
<div class="row d-none">
<div class="col-md-6">
<span class="table-text d-none d-lg-block">
{{ trans('pagination.showing', ['first' => $review_first_item, 'last' => $review_last_item, 'total' => $reviews->total, 'type' => strtolower(trans('modules.tab.reviews'))]) }}
</span>
</div>
<div class="col-md-6">
<ul class="pagination float-right">
{{-- Previous Page Link --}}
@if ($reviews->current_page <= 1)
<li class="page-item disabled"><span class="page-link">&laquo;</span></li>
@else
<li><a class="page-link" href="{{ url(request()->path()) }}?page={{ $reviews->current_page - 1 }}" rel="prev">&laquo;</a></li>
@endif
{{-- Pagination Elements --}}
@for ($page = 1; $page <= $reviews->last_page; $page++)
@if ($page == $reviews->current_page)
<li class="page-item active"><span class="page-link">{{ $page }}</span></li>
@else
<li class="page-item"><a class="page-link" href="{{ url(request()->path()) }}?page={{ $page }}" data-page="{{ $page }}">{{ $page }}</a></li>
@endif
@endfor
{{-- Next Page Link --}}
@if ($reviews->current_page != 1)
<li class="page-item"><a class="page-link" href="{{ url(request()->path()) }}?page={{ $reviews->current_page + 1 }}" rel="next">&raquo;</a></li>
@else
<li class="page-item disabled"><span class="page-link">&raquo;</span></li>
@endif
</ul>
</div>
</div>
@stack('pagination_end')
@else
<div class="row">
<div class="col-md-12">
<small>{{ trans('general.no_records') }}</small>
</div>
</div>
@endif
</div>
</div>