@extends('layouts.admin')
@section('content')
<div class="page-header"><div class="page-block"><div class="row align-items-center">
    <div class="col-md-12"><ul class="breadcrumb"><li class="breadcrumb-item"><a href="{{ route('admin.dashboard') }}">হোম</a></li><li class="breadcrumb-item"><a href="javascript: void(0)">মিডিয়া</a></li><li class="breadcrumb-item" aria-current="page">Widgets / Create</li></ul></div>
    <div class="col-md-12"><div class="page-header-title"><h2 class="mb-0">{{ __('Create Widget') }}</h2></div></div>
</div></div></div>

@include('includes.admin.form-error')
@include('includes.admin.form-success')

<form id="geniusformdata" action="{{ route('widget.store')}}" method="POST" enctype="multipart/form-data">
    {{csrf_field()}}
    <div class="card">
        <div class="card-header"><h5>{{ __('Widget Details') }}</h5></div>
        <div class="card-body">
            <div class="row">
                <div class="col-md-6 mb-3">
                    <label class="form-label">{{ __('Language') }} <span class="text-danger">*</span></label>
                    <select name="language_id" id="language_id" class="form-control">
                        <option value="">Please Select a Language</option>
                        @foreach ($languages as $language)
                            <option value="{{$language->id}}">{{$language->language}}</option>
                        @endforeach
                    </select>
                </div>
                <div class="col-md-6 mb-3">
                    <label class="form-label">{{ __('Title') }} <span class="text-danger">*</span></label>
                    <input type="text" class="form-control" name="title" placeholder="{{ __('Enter Title') }}" id="title" autocomplete="off">
                </div>
                <div class="col-12 mb-3">
                    <label class="form-label">{{__('Description')}} <span class="text-danger">*</span></label>
                    <textarea class="nic-edit" name="description" placeholder="{{__('Description')}}" id="description"></textarea>
                </div>
                <div class="col-12 mb-3">
                    <label class="form-label">{{__('Visibility')}} <span class="text-danger">*</span></label>
                    <div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="status" value="1" id="visible">
                            <label class="form-check-label" for="visible">{{__('Visible')}}</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="status" value="0" id="invisible" checked>
                            <label class="form-check-label" for="invisible">{{__('Invisible')}}</label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="card"><div class="card-body">
        <button class="btn btn-primary" type="submit"><i class="ti ti-device-floppy me-1"></i>{{ __('Create Widget') }}</button>
    </div></div>
</form>
@endsection
