akaunting 3.0 (the last dance)
This commit is contained in:
63
resources/views/components/layouts/modules/item.blade.php
Normal file
63
resources/views/components/layouts/modules/item.blade.php
Normal file
@ -0,0 +1,63 @@
|
||||
<div>
|
||||
<div>
|
||||
@foreach ($module->files as $file)
|
||||
<a href="{{ route('apps.app.show', $module->slug) }}">
|
||||
@if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
|
||||
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="rounded-md" />
|
||||
@endif
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col py-2 justify-between align-bottom">
|
||||
<div class="flex items-baseline justify-between">
|
||||
<h4 class="w-36 truncate">
|
||||
<a href="{{ route('apps.app.show', $module->slug) }}">
|
||||
{{ $module->name }}
|
||||
</a>
|
||||
</h4>
|
||||
|
||||
<div class="text-xs">
|
||||
@if ($module->price == '0.0000')
|
||||
<span class="font-bold text-purple">
|
||||
{{ trans('modules.free') }}
|
||||
</span>
|
||||
@else
|
||||
{!! $module->price_prefix !!}
|
||||
|
||||
@if (isset($module->special_price))
|
||||
<del class="text-danger">
|
||||
{{ $module->price }}
|
||||
</del>
|
||||
|
||||
{{ $module->special_price }}
|
||||
@else
|
||||
{{ $module->price }}
|
||||
@endif
|
||||
|
||||
{!! $module->price_suffix !!}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-baseline justify-between">
|
||||
<div class="flex">
|
||||
@if($module->vote > 0)
|
||||
@for ($i = 1; $i <= $module->vote; $i++)
|
||||
<i class="material-icons text-xs text-orange">star</i>
|
||||
@endfor
|
||||
|
||||
@for ($i = $module->vote; $i < 5; $i++)
|
||||
<i class="material-icons text-xs">star_border</i>
|
||||
@endfor
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<small class="text-xs">
|
||||
@if ($module->total_review)
|
||||
{{ $module->total_review }} {{ trans('modules.tab.reviews') }}
|
||||
@endif
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user