File: /home/xedaptot/ai.naniguide.com/resources/views/mail_list_templates/index.blade.php
@extends('layouts.core.frontend', [
'menu' => 'list',
])
@section('title', $list->name . ": " . trans('messages.list.templates.all'))
@section('head')
<script type="text/javascript" src="{{ AppUrl::asset('core/tinymce/tinymce.min.js') }}"></script>
<script type="text/javascript" src="{{ AppUrl::asset('core/js/editor.js') }}"></script>
@endsection
@section('page_header')
@include("lists._header")
@endsection
@section('content')
<style>
/* .template-card {
transition: box-shadow 0.2s, transform 0.2s;
border-radius: 1rem;
border: 1px solid #e3e6ed;
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.template-card:hover {
box-shadow: 0 6px 24px rgba(0,0,0,0.12);
transform: translateY(-4px) scale(1.02);
border-color: #0d6efd;
}
.template-icon {
font-size: 2.5rem;
color: #6c757d;
}
.template-card .btn {
transition: background 0.2s, color 0.2s;
}
.template-card:hover .btn {
background: #0d6efd;
color: #fff;
} */
.template-icon {
font-size: 2.5rem;
color: #6c757d;
}
.template-card:hover {
box-shadow: 0 6px 24px rgba(0,0,0,0.05)!important;
transition: all 0.3s ease-in-out;
}
</style>
@include("lists._menu", [
'menu' => 'all',
])
<h2 class="my-4">{{ trans('messages.list.templates.all') }}</h2>
<p>{{ trans('messages.list.templates.all.description') }}</p>
<div class="row g-4">
@foreach ($mailListTemplates as $key => $mailListTemplate)
<div class="col-12 col-sm-6 col-md-4 col-lg-4">
<div class="template-card border rounded shadow-sm p-4 h-100 d-flex flex-column justify-content-between">
<div>
<div class="mb-2 d-flex">
<div class="m-0 text-bold flex-grow-1 d-block">
<a class="text-decoration-none text-dark" href="{{ action('MailListTemplateController@update', [
'list_uid' => $list->uid,
'alias' => $mailListTemplate->alias,
]) }}">
{{ trans('messages.' . $mailListTemplate->alias) }}
</a>
</div>
<div class="ms-auto ps-2" style="margin-top: -17px;margin-right: -17px;">
<span class="template-type-icon mb-2 d-inline-block">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#666666"><path d="M360-250.77h240q8.54 0 14.27-5.73t5.73-14.27q0-8.54-5.73-14.27T600-290.77H360q-8.54 0-14.27 5.73T340-270.77q0 8.54 5.73 14.27t14.27 5.73Zm0-104.61h240q8.54 0 14.27-5.74 5.73-5.73 5.73-14.26 0-8.54-5.73-14.27T600-395.38H360q-8.54 0-14.27 5.73T340-375.38q0 8.53 5.73 14.26 5.73 5.74 14.27 5.74Zm120-309.54q-15.85-19.62-30.35-31.96-14.5-12.35-41.65-12.35-28.31 0-48.15 19.85Q340-669.54 340-641.23q0 49.15 42.85 86.65 42.84 37.5 75.53 67.2 8.7 8.69 21.62 8.69 12.92 0 21.62-8.69 32.69-28.93 75.53-66.81Q620-592.08 620-641.23q0-28.31-19.85-48.15-19.84-19.85-48.15-19.85-27.15 0-41.65 12.35-14.5 12.34-30.35 31.96ZM695.38-120H264.62q-27.62 0-46.12-18.5Q200-157 200-184.62v-590.76q0-27.62 18.5-46.12Q237-840 264.62-840h430.76q27.62 0 46.12 18.5Q760-803 760-775.38v590.76q0 27.62-18.5 46.12Q723-120 695.38-120Zm-430.76-40h430.76q10.77 0 17.7-6.92 6.92-6.93 6.92-17.7v-590.76q0-10.77-6.92-17.7-6.93-6.92-17.7-6.92H264.62q-10.77 0-17.7 6.92-6.92 6.93-6.92 17.7v590.76q0 10.77 6.92 17.7 6.93 6.92 17.7 6.92ZM240-160v-640 640Z"/></svg>
</span>
</div>
</div>
<p class="mb-2 text-muted">{{ trans('messages.system_template.' . $mailListTemplate->alias . '.description') }}</p>
</div>
<div class="mt-2">
<div class="d-flex justify-content-between align-items-center mb-3 border-bottom pb-2">
<span class="text-muted small">{{ trans("messages.updated_at") }}</span>
<span class="text-muted small">{{ Auth::user()->customer->formatDateTime($mailListTemplate->updated_at, 'datetime_full') }}</span>
</div>
<div class="d-flex">
<a onclick="popupwindow('{{ action('MailListTemplateController@preview', $mailListTemplate->uid) }}', `{{ $mailListTemplate->name }}`, 1200)"
href="javascript:;" role="button" class="btn btn-secondary preview-page-button me-1">
<span class="material-symbols-rounded xtooltip" title="{{ trans('messages.preview') }}">visibility</span> {{ trans('messages.preview') }}
</a>
<div class="btn-group" role="group">
<button id="btnGroupDrop1" type="button" class="btn btn-light btn-icon dropdown-toggle ps-2" data-bs-toggle="dropdown" aria-expanded="false">
{{ trans('messages.actions') }}
</button>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="btnGroupDrop1">
<li>
<a href="{{ action('MailListTemplateController@update', [
'list_uid' => $list->uid,
'alias' => $mailListTemplate->alias,
]) }}" role="button" class="dropdown-item xtooltip" title="{{ trans('messages.settings') }}">
<span class="material-symbols-rounded">settings</span> {{ trans('messages.settings') }}
</a>
</li>
<li>
<a href="{{ action('MailListTemplateController@builder', [
'uid' => $mailListTemplate->uid,
]) }}" role="button" class="dropdown-item xtooltip" title="{{ trans('messages.builder') }}">
<span class="material-symbols-rounded">design_services</span> {{ trans('messages.builder') }}
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
@endforeach
</div>
@endsection