@extends('yonetim.yonetim_master')
@section('main')
    <section class="section">
        <div class="section-body">
            <div class="row">
                <div class="col-12 col-md-12 col-lg-9">
                    <div class="card">
                        <form class="mt-8 space-y-6" action="{{route('genelayar.emailayarson')}}" method="POST">
                            @csrf



                            <div class="card-header">
                                <h4>Mail Ayarları</h4>
                            </div>
                            <div class="card-body">

                                <input name="ayar_id" value="{{$ayarcek2->id}}" type="hidden">



                                <div class="form-group">
                                    <label>Mail Driver</label>
                                    <input name="driver" type="text" class="form-control" required="" value="{{$ayarcek2->driver}}">
                                </div>



                                <div class="form-group">
                                    <label>Host</label>
                                    <input name="host" type="text" class="form-control" required="" value="{{$ayarcek2->host}}">
                                </div>

                                <div class="form-group">
                                    <label>Port</label>
                                    <input name="port" type="text" class="form-control" required="" value="{{$ayarcek2->port}}">
                                </div>

                                <div class="form-group">
                                    <label>Encryption</label>
                                    <input name="encryption" type="text" class="form-control" required="" value="{{$ayarcek2->encryption}}">
                                </div>

                                <div class="form-group">
                                    <label>Kullanıcı Adı</label>
                                    <input name="user_name" type="text" class="form-control" required="" value="{{$ayarcek2->user_name}}">
                                </div>



                                <div class="form-group">
                                    <label>Şifre</label>
                                    <input name="password" type="text" class="form-control" required="" value="{{$ayarcek2->password}}">
                                </div>



                                <div class="form-group">
                                    <label>Gönderici Adı</label>
                                    <input name="sender_name" type="text" class="form-control" required="" value="{{$ayarcek2->sender_name}}">
                                </div>

                                <div class="form-group">
                                    <label>Gönderici Email</label>
                                    <input name="sender_email" type="text" class="form-control" required="" value="{{$ayarcek2->sender_email}}">
                                </div>

                                <div class="form-group">
                                    <label>Üye Kayıt Olunca Mail Bildirim </label>
                                    <select class="form-control" name="uye_kayit_mailbildirim">
                                        @if($ayarcek2->uye_kayit_mailbildirim==0)
                                            <option value="0">Pasif</option>
                                            <option value="1">Aktif</option>
                                        @else
                                            <option value="1">Aktif</option>
                                            <option value="0">Pasif</option>
                                        @endif


                                    </select>

                                </div>


                                <div class="form-group">
                                    <label>Şipariş Gelince Mail Bildirim</label>
                                    <select class="form-control" name="siparis_mailbildirim">
                                        @if($ayarcek2->siparis_mailbildirim==0)
                                            <option value="0">Pasif</option>
                                            <option value="1">Aktif</option>
                                        @else
                                            <option value="1">Aktif</option>
                                            <option value="0">Pasif</option>
                                        @endif


                                    </select>

                                </div>




                            </div>
                            <div class="card-footer text-right">
                                <button type="submit" name="genelayarkaydet" class="btn btn-primary">Güncelle</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>

@endsection

