@extends('layouts.master') @section('content') @if(auth()->user()->hasRole('admin')) @php $backRoute = route('admin.templates.index'); if (auth()->user()->hasRole('admin') && $template->created_by != auth()->id()) { $backRoute = route('admin.user-requests.index'); } @endphp Back {{ $template->name }} 100% @else Back {{ $template->name }} Template created on {{ $template->created_at->format('M d, Y') }} by {{ $template->creator->name }} Selected Categories @php $selectedNodes = \App\Models\Category::whereIn('id', $checkedCategories)->get(); @endphp @foreach($selectedNodes as $node) {{ $node->name }} @endforeach @endif @endsection @push('styles') @endpush @push('scripts') @endpush
Template created on {{ $template->created_at->format('M d, Y') }} by {{ $template->creator->name }}