@extends('layouts.load')

@section('content')

<div class="card shadow-none border-0 mb-0">
    <div class="card-body p-3">
        @include('includes.admin.form-error')
        <div class="gocover" style="background: url({{asset('assets/images/'.$gs->admin_loader)}}) no-repeat scroll center center rgba(45, 45, 45, 0.5);"></div>
        <form id="geniusformdataedit" action="{{ route('image.album.store')}}" method="POST" enctype="multipart/form-data">
            {{csrf_field()}}

            <div class="mb-3">
                <label class="form-label">{{ __('Language') }} <span class="text-danger">*</span></label>
                <select name="language_id" class="form-select">
                    <option value="">{{__('Please Select Your Album Language')}}</option>
                    @foreach ($datas as $data)
                        <option value="{{$data->id}}">{{$data->language}}</option>
                    @endforeach
                </select>
            </div>

            <div class="mb-3">
                <label class="form-label">{{ __('Gallery Name') }} <span class="text-danger">*</span></label>
                <input type="text" name="album_name" placeholder="{{ __('Album Name') }}" class="form-control">
            </div>

            <div class="mb-3">
                <label class="form-label">{{__('Featured Image')}} <span class="text-danger">*</span></label>
                <div class="img-upload">
                    <div id="image-preview" class="img-preview" style="background: url({{ asset('assets/admin/images/upload.png') }});">
                        <label for="image-upload" class="img-label" id="image-label"><i class="icofont-upload-alt"></i>Upload Image</label>
                        <input type="file" name="photo" class="img-upload" id="image-upload">
                    </div>
                    <p class="text-muted small mt-1">{{__('Prefered Size: (600x600) or Square Sized Image')}}</p>
                </div>
            </div>

            <button class="btn btn-primary w-100" type="submit">{{ __('Create Album') }}</button>
        </form>
    </div>
</div>

@endsection

@section('scripts')
@endsection
