61 lines
2.2 KiB
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<div class="col-md-3 no-padding-left">
<div class="box box-success">
<div class="box-header with-border">
2017-11-01 22:15:25 +03:00
<h3 class="box-title"><a href="{{ url('apps/' . $module->slug) }}">{{ $module->name }}</a></h3>
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
<span class="module-installed">
<small class="label {{ $color }}">{{ trans('modules.badge.installed') }}</small>
</span>
@endif
2017-09-14 22:21:00 +03:00
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
2017-10-28 01:23:44 +03:00
<div class="box-body text-center">
2017-11-01 22:15:25 +03:00
<a href="{{ url('apps/' . $module->slug) }}">
2017-11-03 09:42:46 +03:00
@foreach ($module->files as $file)
2017-11-03 09:45:54 +03:00
@if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="item-image">
2017-11-03 09:42:46 +03:00
@endif
@endforeach
2017-09-14 22:21:00 +03:00
</a>
</div>
<!-- /.box-body -->
<div class="box-footer">
<div class="pull-left">
@for($i = 1; $i <= $module->vote; $i++)
<i class="fa fa-star fa-lg"></i>
@endfor
@for($i = $module->vote; $i < 5; $i++)
<i class="fa fa-star-o fa-lg"></i>
@endfor
@if ($module->total_review)
&nbsp; ({{ $module->total_review }})
@endif
2017-09-14 22:21:00 +03:00
</div>
<div class="pull-right">
@if ($module->price == '0.0000')
{{ trans('modules.free') }}
@else
2018-12-22 18:04:16 +03:00
{!! $module->price_prefix !!}
2018-05-12 13:44:07 +03:00
@if (isset($module->special_price))
<del>{{ $module->price }}</del>
{{ $module->special_price }}
@else
{{ $module->price }}
@endif
2018-12-22 18:04:16 +03:00
{!! $module->price_suffix !!}
2017-09-14 22:21:00 +03:00
@endif
</div>
</div>
<!-- /.box-footer -->
</div>
<!-- /.box -->
</div>