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

<div class="content">
    <div class="container-fluid">
        <h4 class="page-title">Ana Sayfa Footer İşlemleri</h4>
        <div class="row">
            <div class="col-md-12">
                <form method="post" enctype="multipart/form-data">
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">Banner Güncelleme</div>
                        </div>
                        <input type="hidden" asp-for="FooterID" />
                        <div class="card-body">
                            <!-- Görsel -->
                            <div class="form-group row">
                                <label for="ImageFile" class="col-md-2 col-form-label">Logo</label>
                                <div class="col-md-10">
                                    <input type="file" class="form-control" name="ImageFile" id="ImageFile">
                                    @if (!string.IsNullOrEmpty(Model.LogoUrl))
                                    {
                                        <img src="@Model.LogoUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
                                    }
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="Phone" class="col-md-2 col-form-label">Telefon</label>
                                <div class="col-md-10">
                                    <input type="tel" class="form-control" asp-for="Phone" id="Phone">
                                    <span asp-validation-for="Phone" class="text-danger"></span>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="Mail" class="col-md-2 col-form-label">E-Posta</label>
                                <div class="col-md-10">
                                    <input type="email" class="form-control" asp-for="Mail" id="Mail">
                                    <span asp-validation-for="Mail" class="text-danger"></span>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="Facebook" class="col-md-2 col-form-label">Facebook</label>
                                <div class="col-md-10">
                                    <input type="url" class="form-control" asp-for="Facebook" id="Facebook">
                                    <span asp-validation-for="Facebook" class="text-danger"></span>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="Instagram" class="col-md-2 col-form-label">Instagram</label>
                                <div class="col-md-10">
                                    <input type="url" class="form-control" asp-for="Instagram" id="Instagram">
                                    <span asp-validation-for="Instagram" class="text-danger"></span>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="Linkedin" class="col-md-2 col-form-label">Linkedin</label>
                                <div class="col-md-10">
                                    <input type="url" class="form-control" asp-for="Linkedin" id="Linkedin">
                                    <span asp-validation-for="Linkedin" class="text-danger"></span>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="Youtube" class="col-md-2 col-form-label">Youtube</label>
                                <div class="col-md-10">
                                    <input type="url" class="form-control" asp-for="Youtube" id="Youtube">
                                    <span asp-validation-for="Youtube" class="text-danger"></span>
                                </div>
                            </div>

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







