@extends ('admin.layouts.default') @section ('main')

@php echo (isset($email)) ? __('labels.email.edit_email') : __('labels.email.create_email'); @endphp

@include('admin.partials.x-toolbar') @php $action = (isset($email)) ? route('admin.cms.emails.update', $query) : route('admin.cms.emails.store', $query) @endphp
@csrf @if (isset($email)) @method('put') @endif @foreach ($fields as $field) @php if (isset($email)) { $value = old($field->name, $field->value); if ($field->name == 'access_level' && $email->role_level > auth()->user()->getRoleLevel()) { $field->extra = ['disabled']; } } else { if ($field->name == 'created_at' || $field->name == 'updated_at') { continue; } $value = old($field->name); } @endphp @if ($field->name == 'body_html')
@endif @if ($field->name == 'body_text')
@endif @if ($field->name == 'body_html')
@endif @if ($field->name == 'body_text')
@endif @endforeach @if (isset($email)) @endif
@if (isset($email))
@method('delete') @csrf
@endif @endsection @push ('style') @endpush @push ('scripts') @endpush