@extends('admin.general.index')

@section('setting_content')
    <form method="POST" class="profile-settings" enctype="multipart/form-data">
        @csrf
        <div class="row c-gx-4 mt-3 gy-4">
            <div class="col-md-6">
                <div class="image-uploader imageUploader">
                    <label class="image-uploader-preview">
                        <img class="imagePreview" src="{{ siteLogo() }}" alt="Preview" />
                        <span class="icon">
                            <i class="fa-solid fa-plus"></i>
                        </span>
                        <input type="file" name="logo" class="d-none imageInput" accept=".jpg, .jpeg, .png" />
                    </label>
                    <div class="image-uploader-content">
                        <p class="title">@lang('Logo Image')</p>
                        <p class="note">
                            @lang('Supported formats'): @lang('PNG'), @lang('JPG'), @lang('JPEG')
                        </p>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="image-uploader imageUploader">
                    <label class="image-uploader-preview">
                        <img class="imagePreview" src="{{ siteFavicon() }}" alt="Preview" />
                        <span class="icon">
                            <i class="fa-solid fa-plus"></i>
                        </span>
                        <input type="file" name="favicon" class="d-none imageInput" accept=".jpg, .jpeg, .png" />
                    </label>
                    <div class="image-uploader-content">
                        <p class="title">@lang('Favicon Image')</p>
                        <p class="note">
                            @lang('Supported formats'): @lang('PNG'), @lang('JPG'), @lang('JPEG')
                        </p>
                    </div>
                </div>
            </div>

        </div>
        <div class="profile-settings-submit">
            <button class="btn btn--base btn--md w-100">@lang('Submit')</button>
        </div>

    </form>
@endsection

@push('style')
    <style>
        .image-uploader-preview img {
            border: 1px solid hsl(var(--border-color) / .5);
            object-fit: contain; 
        }
    </style>
@endpush
