@extends('backend.admin.layouts.app')
@section('content')
    <div class="pagetitle">
        <h1>Dashboard</h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="index.html">Home</a></li>
                <li class="breadcrumb-item">Dashboard</li>
                <li class="breadcrumb-item active">{{ $PageTitle }}</li>

            </ol>
        </nav>
    </div><!-- End Page Title -->

    <section class="section dashboard">
        <div class="row">
            <div class="col-lg-12">

                <div class="card">
                    <div class="card-body mt-3">
                        <form action="{{ route('admin.setting') }}" method="POST" enctype="multipart/form-data">
                            @csrf
                            
                            <div class="row mt-5 mb-4">
                                <label for="privacy_policy_banner" class="col-sm-2 col-form-label">Banner Image</label>
                                <div class="col-sm-10 mb-25">
                                    <div class="upload-img-box">
                                        <img src="{{ getimage(getOption('privacy_policy_banner')) }}">
                                        <input type="file" name="privacy_policy_banner" id="privacy_policy_banner" accept="image/*"
                                            onchange="previewFile(this)">
                                        <div class="upload-img-box-icon">
                                            <i class="fa-solid fa-camera"></i>
                                        </div>
                                    </div>
                                    <p class="col-sm-10 mt-2">Size: 950 x 400 (100kb)</p>
                                </div>
                            </div>

                            <div class="row mb-3">
                                <label for="inputText" for="privacy_policy_content" class="col-sm-2 col-form-label">Content</label>
                                <div class="col-sm-10">
                                    <textarea class="tinymce-editor @error('privacy_policy_content') is-invalid @enderror" name="privacy_policy_content"
                                        id="privacy_policy_content">{{ getOption('privacy_policy_content') }}</textarea>
                                </div>
                            </div>

                            <div class="row mb-3">
                                <div class="col-sm-10">
                                    <button type="submit" class="btn btn-primary">Save</button>
                                </div>
                            </div>

                        </form><!-- End General Form Elements -->

                    </div>
                </div>

            </div>
        </div>
    </section>
@endsection
@push('style')
    <style>
        .upload-img-box {
            width: 100%;
            height: 250px;
        }
    </style>
@endpush
