@extends('layouts.app') @section('site_title', formatTitle([__('Templates'), config('settings.title')])) @section('head_content') @endsection @section('content')
@include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => route('dashboard'), 'title' => __('Home')], ['title' => __('Templates')], ]])

{{ __('Templates') }}

@include('shared.message')
{{ __('All') }} {{ $templates->count() }} @foreach($templates as $template) @if(!isset($menuCategoryName) || isset($menuCategoryName) && $menuCategoryName != $template->category->name)
{{ __($template->category->name) }} {{ $templates->countBy('category_id')->toArray()[$template->category_id] }} @endif @php $menuCategoryName = $template->category->name; @endphp @endforeach
@foreach($templates as $template) @if(!isset($categoryName) || isset($categoryName) && $categoryName != $template->category->name)
{{ __($template->category->name) }}
@endif
@if($template->isCustom()) {{ $template->icon }} @else @include('icons.' . $template->icon, ['class' => 'fill-current width-5 height-5']) @endif
@if($template->isCustom())
@include('templates.partials.menu')
@endif
{{ __($template->name) }}
{{ __($template->description) }}
@php $categoryName = $template->category->name; @endphp @endforeach
@if ($templates->hasPages())
{{ $templates->onEachSide(1)->links() }}
@endif
@endsection @include('shared.sidebars.user')