<div>
    <form>
        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="name">Başlık *</label>
            <div class="col-sm-10">
                <input class="form-control" id="name" type="text" wire:model.live="name" required autocomplete="off">
            </div>
        </div>

        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="slug">Slug *</label>
            <div class="col-sm-10">
                <input class="form-control" id="slug" type="text" wire:model.live="slug" required autocomplete="off">
            </div>
        </div>

        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="description">Açıklama</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="description" wire:model.live="description" autocomplete="off"></textarea>
            </div>
        </div>

        <!-- TODO: Redirect Page Select -->

        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="store_data">Veritabanına Kayıt</label>
            <div class="col-sm-10">
                <select class="form-select" id="store_data" wire:model.live="store_data">
                    <option value="1">Aktif</option>
                    <option value="0">Pasif</option>
                </select>
            </div>
        </div>

        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="send_email">E-posta İle Gönder</label>
            <div class="col-sm-10">
                <select class="form-select" id="send_email" wire:model.live="send_email">
                    <option value="0">Pasif</option>
                    <option value="1">Aktif</option>
                </select>
            </div>
        </div>

        @if($send_email)
            <div class="row mb-3">
                <label class="col-sm-2 col-form-label" for="recipient_address">E-posta Adresi</label>
                <div class="col-sm-10">
                    <input class="form-control" id="recipient_address" type="email" wire:model.live="recipient_address" autocomplete="off">
                </div>
            </div>

            <div class="row mb-3">
                <label class="col-sm-2 col-form-label" for="email_subject">E-posta Konusu</label>
                <div class="col-sm-10">
                    <input class="form-control" id="email_subject" type="text" wire:model.live="email_subject" autocomplete="off">
                </div>
            </div>
        @endif

        <button class="btn btn-primary" type="submit" wire:click.prevent="save" wire:loading.attr="disabled">Güncelle</button>
    </form>
</div>