@extends('admin.setting.profile_setting.index')

@section('profile_content')
    <form method="POST" class="profile-settings" enctype="multipart/form-data">
        @csrf
        <div class="profile-settings-uploader">
            <div class="col-md-6">
                <div class="image-uploader imageUploader">
                    <label class="image-uploader-preview">
                        <img class="imagePreview" src="{{ getImage(getFilePath('adminProfile') . '/' . $admin->image) }}" alt="Preview" />
                        <span class="icon">
                            <i class="fa-solid fa-plus"></i>
                        </span>
                        <input type="file" name="image" class="d-none imageInput" accept=".jpg, .jpeg, .png" />
                    </label>
                    <div class="image-uploader-content">
                        <p class="title">@lang('Profile Image')</p>
                        <p class="note">
                            @lang('Supported formats'): @lang('PNG'), @lang('JPG'), @lang('JPEG')
                        </p>
                    </div>
                </div>
            </div>
        </div>

        <div class="row c-gx-4 gy-4">
            <div class="col-md-12">
                <div class="form--group">
                    <label class="form--label style-two">@lang('Name')</label>
                    <input type="text" name="name" class="form--control md-style" value="{{ $admin->name }}" required/>
                </div>
            </div>

            <div class="col-md-6">
                <div class="form--group">
                    <label for="email" class="form--label style-two">@lang('Email')</label>
                    <input type="email" name="email" class="form--control md-style" value="{{ $admin->email }}" required/>
                </div>
            </div>

            <div class="col-md-6">
                <div class="form--group">
                    <label for="mobile" class="form--label style-two">
                        @lang('Mobile Number')
                    </label>
                    <input type="text" name="mobile" class="form--control form-control md-style" value="{{ $admin->mobile }}" placeholder="Mobile" />
                </div>
            </div>
        </div>
        <div class="profile-settings-submit">
            <button class="btn btn--base btn--md w-100">@lang('Submit')</button>
        </div>
    </form>
@endsection