@extends('layouts.admin') @section('title', 'Global Templates') @section('page-title', 'Global Content Templates') @section('page-subtitle', 'View available templates to copy to your branch') @section('content')

Global Content Templates

Copy these templates to your branch and customize them

These are global templates available for all branches. Click "Copy" to add a template to your branch, or "Copy All to Branch" to add all templates at once. Copied items will override the default content on your branch's website.

Available Templates

@if(request('search')) Clear @endif
@forelse($contents as $content) @php $hasBranchCopy = \App\Models\FrontendContent::where('church_id', current_church_id()) ->where('key', $content->key) ->exists(); @endphp @empty @endforelse
Key Section Type Preview Status Actions

{{ $content->key }}

{{ Str::limit($content->value, 50) }}

{{ $sections[$content->section] ?? $content->section }} @if($content->type === 'image') Image @elseif($content->type === 'url') URL @else Text @endif @if($content->type === 'image' && $content->value) @elseif($content->type === 'url') {{ Str::limit(parse_url($content->value, PHP_URL_HOST), 20) }} @else {{ Str::limit(strip_tags($content->value), 30) }} @endif @if($hasBranchCopy) Copied @elseif($content->is_active) Available @else Inactive @endif
@if($hasBranchCopy) @else @endif
@if(request('search'))

No templates found matching "{{ request('search') }}"

Clear search @else

No global templates available.

@endif
{{ $contents->withQueryString()->links() }}
@endsection