2019-11-16 10:21:14 +03:00
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header py-2">
|
|
|
|
<h4 class="ml--3 mb-0 float-left">
|
2020-02-24 13:10:02 +03:00
|
|
|
<a href="{{ route('apps.app.show', $module->slug) }}">{{ $module->name }}</a>
|
2019-11-16 10:21:14 +03:00
|
|
|
</h4>
|
2020-04-22 12:48:51 +03:00
|
|
|
|
2018-05-28 16:46:52 +03:00
|
|
|
@if (isset($installed[$module->slug]))
|
|
|
|
@php $color = 'bg-green'; @endphp
|
|
|
|
|
|
|
|
@if (!$installed[$module->slug])
|
|
|
|
@php $color = 'bg-yellow'; @endphp
|
|
|
|
@endif
|
2020-04-22 12:48:51 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<span class="mr--3 float-right">
|
|
|
|
<span class="badge {{ $color }} text-white">{{ trans('modules.badge.installed') }}</span>
|
2018-05-28 16:46:52 +03:00
|
|
|
</span>
|
|
|
|
@endif
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
|
|
|
|
2020-02-24 13:10:02 +03:00
|
|
|
<a href="{{ route('apps.app.show', $module->slug) }}">
|
2019-11-16 10:21:14 +03:00
|
|
|
@foreach ($module->files as $file)
|
|
|
|
@if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
|
2020-01-05 15:22:47 +03:00
|
|
|
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="card-img-top border-radius-none">
|
2019-11-16 10:21:14 +03:00
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</a>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card-footer py-2">
|
|
|
|
<div class="float-left ml--3 mt--1">
|
|
|
|
@for($i = 1; $i <= $module->vote; $i++)
|
|
|
|
<i class="fa fa-star text-xs text-yellow"></i>
|
|
|
|
@endfor
|
2020-04-22 12:48:51 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
@for($i = $module->vote; $i < 5; $i++)
|
|
|
|
<i class="far fa-star text-xs"></i>
|
|
|
|
@endfor
|
2020-04-22 12:48:51 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<small class="text-xs">
|
|
|
|
@if ($module->total_review)
|
|
|
|
({{ $module->total_review }})
|
2018-05-12 13:44:07 +03:00
|
|
|
@endif
|
2019-11-16 10:21:14 +03:00
|
|
|
</small>
|
|
|
|
</div>
|
2020-04-22 12:48:51 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="float-right mr--3">
|
|
|
|
<small>
|
|
|
|
<strong>
|
|
|
|
@if ($module->price == '0.0000')
|
|
|
|
{{ trans('modules.free') }}
|
|
|
|
@else
|
|
|
|
{!! $module->price_prefix !!}
|
|
|
|
@if (isset($module->special_price))
|
2019-11-29 11:09:11 +03:00
|
|
|
<del class="text-danger">{{ $module->price }}</del>
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ $module->special_price }}
|
|
|
|
@else
|
|
|
|
{{ $module->price }}
|
|
|
|
@endif
|
|
|
|
{!! $module->price_suffix !!}
|
|
|
|
@endif
|
|
|
|
</strong>
|
|
|
|
</small>
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|