@extends('layouts.admin') @section('title', 'Document Templates') @section('page-title', 'Document Templates') @section('content')

Document Templates

Choose default templates for invoices, quotations, and receipts

@if(session('success'))
check_circle {{ session('success') }}
@endif @if(session('error'))
error {{ session('error') }}
@endif

description Invoice Templates

Select the default template for invoice documents

@foreach($invoiceTemplates as $key => $template)
@if($key === 'modern') Modern Corporate Template Preview @elseif($key === 'minimal') Business Professional Template Preview @elseif($key === 'classic') Minimal Clean Template Preview @else Premium Branding Template Preview @endif @if($defaultInvoiceTemplate === $key)
check_circle Default
@endif

{{ $template['name'] }}

{{ $template['description'] }}

@endforeach

receipt_long Quotation Templates

Select the default template for quotation documents

@foreach($quotationTemplates as $key => $template)
@php $quotationPreviewFile = match ($key) { 'modern' => 'Q-Corporate Quote.png', 'classic' => 'Q-sales proposal.png', 'minimal' => 'Q-clean estimate.png', default => 'Q-premium-proposal.png', }; @endphp
{{ $template['name'] ?? 'Quotation' }} template preview @if($defaultQuotationTemplate === $key)
check_circle Default
@endif

{{ $template['name'] }}

{{ $template['description'] }}

@endforeach

receipt Receipt Templates

Select the default template for receipt documents

@foreach($receiptTemplates as $key => $template)
@if($key === 'modern') Standard Payment Receipt Template Preview @elseif($key === 'classic') POS Style Receipt Template Preview @elseif($key === 'minimal') Business Receipt Template Preview @else Modern Branded Receipt Template Preview @endif @if($defaultReceiptTemplate === $key)
check_circle Default
@endif

{{ $template['name'] }}

{{ $template['description'] }}

@endforeach
@endsection