@extends('layouts.admin')

@section('title', 'Edit Template Sijil')

@section('content')
<h2 class="mb-4">Edit Template: {{ $template->template_name }}</h2>
<div class="card"><div class="card-body">
    <form action="{{ route('admin.certificate-templates.update', $template) }}" method="POST" enctype="multipart/form-data">
        @csrf @method('PUT')
        @include('admin.certificate-templates._form', ['template' => $template])
        <div class="form-actions">
        <button type="submit" class="btn btn-esijil">&#10003; Simpan Tetapan</button>
        <a href="{{ route('admin.certificate-templates.preview', $template) }}" class="btn btn-outline-info" target="_blank">&#128065; Preview Sijil</a>
        <a href="{{ route('admin.certificate-templates.index') }}" class="btn btn-outline-secondary">&#8592; Kembali</a>
        </div>
    </form>
</div></div>
@endsection
