@model CreateTestimonialDto
@{
    ViewData["Title"] = "CreateTestimonial";
    Layout = "~/Views/AdminLayout/Index.cshtml";
}

<div class="content">
    <div class="container-fluid">
        <h4 class="page-title">Müşteri Yorumları İşlemleri</h4>
        <div class="row">
            <div class="col-md-12">
                <form asp-action="CreateTestimonial" method="post" enctype="multipart/form-data">
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">Yeni Müşteri Yorumu Girişi</div>
                        </div>
                        <div class="card-body">
                            <div class="form-group row">
                                <label for="Name" class="col-md-2 col-form-label">Adı/Soyadı</label>
                                <div class="col-md-10">
                                    <input type="text" class="form-control" asp-for="Name" id="Name">
                                    <span asp-validation-for="Name" class="text-danger"></span>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="Title" class="col-md-2 col-form-label">Ünvanı</label>
                                <div class="col-md-10">
                                    <input type="text" class="form-control" asp-for="Title" id="Title">
                                    <span asp-validation-for="Title" class="text-danger"></span>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="Comment" class="col-md-2 col-form-label">Yorum</label>
                                <div class="col-md-10">
                                    <textarea rows="5" class="form-control" asp-for="Comment" id="Comment"></textarea>
                                    <span asp-validation-for="Comment" class="text-danger"></span>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="ImageFile" class="col-md-2 col-form-label">Görsel</label>
                                <div class="col-md-10">
                                    <input type="file" class="form-control" asp-for="ImageFile" id="ImageFile">
                                    <span asp-validation-for="ImageFile" class="text-danger"></span>
                                    <span class="badge badge-danger">Görsel Boyutu 80x80 olmaldır.</span>
                                </div>
                            </div>
                        </div>

                        <div class="card-action">
                            <button class="btn btn-success">Kaydet</button>
                            <a href="/Testimonial/Index/" class="btn btn-warning ml-2">Listeye Dön</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>





