change icons, css, add routing to merchandise, add mail templater, fixes
This commit is contained in:
38
resources/views/Admin/Core/Mail/MailLog/index.blade.php
Normal file
38
resources/views/Admin/Core/Mail/MailLog/index.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Admin.mail_logs.title'),
|
||||
'subtitle' => __('Admin.mail_logs.list'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Core.Mail.MailLog.index'),
|
||||
'model' => 'mail_logs',
|
||||
'with_add' => false,
|
||||
'with_print' => false,
|
||||
'with_filters' => true,
|
||||
'show_callback' => 'MailLogShow(id);',
|
||||
])
|
||||
@endcomponent
|
||||
|
||||
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-mail_logs-filters'])
|
||||
@include('admin.Core.Mail.MailLog.partials.filters', ['model' => 'mail_logs'])
|
||||
@endcomponent
|
||||
|
||||
@endsection
|
||||
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
function MailLogShow(id) {
|
||||
var url_open = "{{ route('Admin.Core.Mail.MailLog.show') }}/" + id;
|
||||
openModal("{{ __('admin.Core.MailLog.modal') }}", '#mail_log-form', url_open, false, false, "xl");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
16
resources/views/Admin/Core/Mail/MailLog/modal.blade.php
Normal file
16
resources/views/Admin/Core/Mail/MailLog/modal.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<strong>@lang('from') : </strong>
|
||||
{{ $message['from'] }}<br/>
|
||||
<strong>@lang('subject') : </strong>
|
||||
{{ $message['subject'] }}<br/>
|
||||
<strong class="text-uppercase">@lang('to') : </strong>
|
||||
{{ $message['to_name'] }} {{ $message['to_email'] }}<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 text-dark">
|
||||
{!! $message['content'] !!}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
|
||||
<div class="row mb-3">
|
||||
<label class="col-4 text-right">{{ __('application') }}</label>
|
||||
<div class="col-8">
|
||||
@include('components.form.select', [
|
||||
'name' => 'application_id',
|
||||
'list' => $applications ?? [],
|
||||
'value' => $filters['application_id'] ?? null,
|
||||
'class' => 'select2',
|
||||
'with_empty' => __('all'),
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<label class="col-4 text-right">{{ __('module') }}</label>
|
||||
<div class="col-8">
|
||||
@include('components.form.select', [
|
||||
'name' => 'application_module_id',
|
||||
'list' => $application_modules ?? [],
|
||||
'value' => $filters['application_module_id'] ?? null,
|
||||
'class' => 'select2',
|
||||
'with_empty' => __('all'),
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
Reference in New Issue
Block a user