@section('site_title', formatTitle([__('Edit'), __('Template'), config('settings.title')])) @include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => request()->is('admin/*') ? route('admin.dashboard') : route('dashboard'), 'title' => request()->is('admin/*') ? __('Admin') : __('Home')], ['url' => request()->is('admin/*') ? route('admin.templates') : route('templates'), 'title' => __('Templates')], ['title' => __('Edit')], ]])

{{ __('Edit') }}

{{ __('Template') }}
@include('templates.partials.menu')
@include('shared.message')
@csrf @if(request()->is('admin/*')) @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif {{ __('The name of the template.') }}
@if ($errors->has('icon')) {{ $errors->first('icon') }} @endif {{ __('The icon of the template.') }}
@if ($errors->has('description')) {{ $errors->first('description') }} @endif {{ __('The description of the template.') }}
@if ($errors->has('prompt')) {{ $errors->first('prompt') }} @endif {{ __('The prompt of the template.') }}
@if(request()->is('admin/*'))
@include('admin.users.partials.card', ['user' => $template->user])
@php $menu = [ ['icon' => 'icons.document', 'route' => 'admin.documents', 'title' => __('Documents'), 'stats' => 'documents'] ]; @endphp @foreach($menu as $link)
@include($link['icon'], ['class' => 'fill-current width-4 height-4 ' . (__('lang_dir') == 'rtl' ? 'ml-3' : 'mr-3 ')])
{{ $link['title'] }}
@include((__('lang_dir') == 'rtl' ? 'icons.chevron-left' : 'icons.chevron-right'), ['class' => 'width-3 height-3 fill-current mx-2'])
{{ number_format($stats[$link['stats']], 0, __('.'), __(',')) }}
@endforeach
@endif