@extends('layouts.admin')

@section('content')

<!-- [ breadcrumb ] start -->
<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)">Admin</a></li>
                    <li class="breadcrumb-item" aria-current="page">Logo / Create</li>
                </ul>
            </div>
            <div class="col-md-12">
                <div class="page-header-title">
                    <h2 class="mb-0">Logo / Create</h2>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- [ breadcrumb ] end -->

<div class="card">
    <div class="card-body">
        @include('includes.admin.form-both')
        <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="geniusform" action="{{ route('admin.languagelogo.store') }}" method="POST" enctype="multipart/form-data">
            {{csrf_field()}}
            <div class="row justify-content-center">
                <div class="col-lg-6">
                    <div class="mb-3">
                        <label class="form-label">{{ __('Language') }} <span class="text-danger">*</span></label>
                        <select name="language_id" id="article_language_id" class="form-select">
                            <option value="">{{__('Please Select a Language')}}</option>
                            @foreach ($languages as $language)
                                <option value="{{$language->id}}">{{$language->language}}</option>
                            @endforeach
                        </select>
                    </div>

                    <div class="mb-3">
                        <label class="form-label">{{__('Header logo')}} <span class="text-danger">*</span></label>
                        <div class="img-upload custom-image-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')}}</label>
                                <input type="file" name="header_logo" class="img-upload" id="image-upload">
                            </div>
                            <p class="text-muted small mt-1">{{__('Prefered Size: (334x50) or Square Sized Image')}}</p>
                        </div>
                    </div>

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

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

@endsection