@extends('admin.layouts.layout') @section('content')

Report Template Management

@if($permission['create']) Add Template @endif @if($permission['destroy']) Delete Multiple @endif
@if(isset($data) && count($data) > 0) @foreach($data as $template) @endforeach @else @endif
Template Name Services Actions
{{ $template->name }} @if($template->templateServices->count() > 0) @php $serviceNames = $template->templateServices->map(function($templateService) { return $templateService->service ? $templateService->service->service_name : 'Unknown Service'; })->filter()->toArray(); @endphp @if(count($serviceNames) > 0) {{ implode(', ', $serviceNames) }} @else No services @endif @else No services @endif
@if($permission['edit']) @endif @if($permission['destroy']) {!! html()->form('DELETE', route('report-templates.master-templates.destroy', $template->id))->attributes([ 'style' => 'display:inline', 'id' => 'delete-form-' . $template->id ])->open() !!} {!! html()->form()->close() !!} @endif
No templates found

Create your first template to get started

@if($permission['create']) Add First Template @endif
@if(isset($data) && $data instanceof \Illuminate\Pagination\LengthAwarePaginator && $data->hasPages()) @endif
@endsection @push('page_script') @endpush