@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.category.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" id="image_category_language_id" class="form-select">
                    <option value="">{{__('Please Select Your Language')}}</option>
                    @foreach ($languages as $languages)
                        <option value="{{$languages->id}}">{{$languages->language}}</option>
                    @endforeach
                </select>
            </div>

            <div class="mb-3">
                <label class="form-label">{{ __('Image Album') }} <span class="text-danger">*</span></label>
                <select name="image_album_id" id="image_album_id" class="form-select">
                    <option value="">{{__('Please Select Your Album')}}</option>
                </select>
            </div>

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

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

@endsection

@section('scripts')
    <script src="{{asset('assets/admin/js/image_category.js')}}"></script>
@endsection
