2022-08-03 14:04:32 +03:00

60 lines
2.0 KiB
PHP

<div>
<div class="flex justify-end py-2">
@if ($module->payment_type)
@if ($module->payment_type == 'yearly')
@php
$color = 'bg-purple-100';
$text = trans('general.yearly');
@endphp
@else
@php
$color = 'bg-purple-100';
$text = trans('general.monthly');
@endphp
@endif
@endif
<span class="inline-flex items-center justify-center text-xs px-4 py-1 font-semibold leading-none rounded-md {{ $color }}">
{{ $text }}
</span>
</div>
<div>
@foreach ($module->files as $file)
<x-link href="{{ route('apps.app.show', $module->slug) }}" override="class">
@if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="rounded-md" />
@endif
</x-link>
@endforeach
</div>
<div class="flex py-2 justify-between items-center">
<div class="py-2">
<h4 class="truncate font-bold text-sm">
<x-link href="{{ route('apps.app.show', $module->slug) }}" override="class">
{{ $module->name }}
</x-link>
</h4>
</div>
<div>
@if ($module->status_type == 'active')
@php
$color = 'bg-green-300';
$text = trans('general.enabled');
@endphp
@else
@php
$color = 'bg-red';
$text = trans('general.disabled');
@endphp
@endif
<span class="inline-flex items-center justify-center text-xs px-4 py-1 font-semibold leading-none rounded-md {{ $color }} text-white">
{{ $text }}
</span>
</div>
</div>
</div>