@extends('layouts.app')
@section('title', '編集')

@section('content')

<!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-lg-6">
                    <h1 class="m-0 text-dark">編集</h1>
                </div>
                <div class="col-lg-6">
                    <ol class="breadcrumb float-sm-right text-sm">
                        <li class="breadcrumb-item"><a href="{{ route('home') }}">ホーム</a></li>
                        <!-- <li class="breadcrumb-item"><a href="javascript:void(0);">[東京都|〇〇駐輪場]</a></li> -->
                        <li class="breadcrumb-item"><a href="{{ route('mail_templates') }}">メール送信テンプレート</a></li>
                        <li class="breadcrumb-item active">編集</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
<!-- /.content-header -->
<section class="content">
    <div class="container-fluid">
        <div class="card">
            {{-- 編集フォーム --}}
            <form id="form_edit" action="{{ route('mail_templates_edit', ['id' => $mailTemplate->mail_template_id]) }}" method="POST">
                @csrf
                @include('admin.mail_templates._form', [
                    'isEdit' => true,
                    'mailTemplate' => $mailTemplate,
                ])
            </form>

            {{-- 削除フォーム（非表示） --}}
            <form id="form_delete" action="{{ route('mail_templates_delete') }}" method="POST" style="display:none;">
                @csrf
                <input type="hidden" name="pk[]" value="{{ $mailTemplate->mail_template_id }}">
            </form>
        </div>
    </div>
</section>
@endsection
