@extends('admin.layouts.app')

@section('content')
<div class="container-fluid">
    <h2>알람</h2>
    <hr/>
    @include('admin.messages')
    @include('admin.config.register.navTabs')

    <form name="f_admin_write" id="fAdminWrite" method="post" action="{{ route('admin.config.register.notify.store') }}" enctype="multipart/form-data">
        @csrf
        <div class="alert alert-dismissible alert-primary">
            (이메일, 문자, 쪽지 수신동의 여부와 상관없이 <strong>무조건 발송</strong>합니다.)
        </div>
        <div class="row mb-3">
            <label class="col-sm-2 col-form-label">회원가입 시</label>
            <div class="col-sm-10">
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_email_register_admin" id="sendEmailRegisterAdmin" class="form-check-input" value="1" {{ config('send_email_register_admin') ? 'checked' : '' }} />
                    <label for="sendEmailRegisterAdmin">
                        <strong>최고관리자</strong>에게 <strong>이메일</strong>을 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_email_register_user" id="sendEmailRegisterUser" class="form-check-input" value="1" {{ config('send_email_register_user') ? 'checked' : '' }} />
                    <label for="sendEmailRegisterUser">
                        <strong>회원</strong>에게 <strong>이메일</strong>을 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_telegram_register_admin" id="sendTelegramRegisterAdmin" class="form-check-input" value="1" {{ config('send_telegram_register_admin') ? 'checked' : '' }} />
                    <label for="sendTelegramRegisterAdmin">
                        <strong>최고관리자</strong>에게 <strong>텔레그램</strong>를 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_telegram_register_user" id="sendTelegramRegisterUser" class="form-check-input" value="1" {{ config('send_telegram_register_user') ? 'checked' : '' }} />
                    <label for="sendTelegramRegisterUser">
                        <strong>회원</strong>에게 <strong>텔레그램</strong>를 발송합니다.
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2 col-form-label">비밀번호 변경 시</label>
            <div class="col-sm-10">
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_email_changepw_admin" id="sendEmailChangePwAdmin" class="form-check-input" value="1" {{ config('send_email_changepw_admin') ? 'checked' : '' }} />
                    <label for="sendEmailChangePwAdmin">
                        <strong>최고관리자</strong>에게 <strong>이메일</strong>을 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_email_changepw_user" id="sendEmailChangePwUser" class="form-check-input" value="1" {{ config('send_email_changepw_user') ? 'checked' : '' }} />
                    <label for="sendEmailChangePwUser">
                        <strong>회원</strong>에게 <strong>이메일</strong>을 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_telegram_changepw_admin" id="sendTelegramChangePwAdmin" class="form-check-input" value="1" {{ config('send_telegram_changepw_admin') ? 'checked' : '' }} />
                    <label for="sendTelegramChangePwAdmin">
                        <strong>최고관리자</strong>에게 <strong>텔레그램</strong>를 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_telegram_changepw_user" id="sendTelegramChangePwUser" class="form-check-input" value="1"  {{ config('send_telegram_changepw_user') ? 'checked' : '' }} />
                    <label for="sendTelegramChangePwUser">
                        <strong>회원</strong>에게 <strong>텔레그램</strong>를 발송합니다.
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2 col-form-label">회원탈퇴 시</label>
            <div class="col-sm-10">
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_email_withdraw_admin" id="sendEmailWithdrawAdmin" class="form-check-input" value="1" {{ config('send_email_withdraw_admin') ? 'checked' : '' }} />
                    <label for="sendEmailWithdrawAdmin">
                        <strong>최고관리자</strong>에게 <strong>이메일</strong>을 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_email_withdraw_user" id="sendEmailWithdrawUser" class="form-check-input" value="1" {{ config('send_email_withdraw_user') ? 'checked' : '' }} />
                    <label for="sendEmailWithdrawUser">
                        <strong>회원</strong>에게 <strong>이메일</strong>을 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_telegram_withdraw_admin" id="sendTelegramWithdrawAdmin" class="form-check-input" value="1" {{ config('send_telegram_withdraw_admin') ? 'checked' : '' }} />
                    <label for="sendTelegramWithdrawAdmin">
                        <strong>최고관리자</strong>에게 <strong>텔레그램</strong>를 발송합니다.
                    </label>
                </div>
                <div class="form-check mb-2">
                    <input type="checkbox" name="send_telegram_withdraw_user" id="sendTelegramWithdrawUser" class="form-check-input" value="1"  {{ config('send_telegram_withdraw_admin') ? 'checked' : '' }} />
                    <label for="sendTelegramWithdrawUser">
                        <strong>회원</strong>에게 <strong>텔레그램</strong>를 발송합니다.
                    </label>
                </div>
            </div>
        </div>
        <hr/>
        <div class="text-end">
            <button type="submit" class="btn btn-success">저장하기</button>
        </div>
    </form>
</div>
@endsection
