@extends('layouts.admin')

@section('styles')
    
@endsection

@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)">সেটিংস</a></li>
                    <li class="breadcrumb-item" aria-current="page">General Settings / PopularTags</li>
                </ul>
            </div>
            <div class="col-md-12">
                <div class="page-header-title">
                    <h2 class="mb-0">General Settings / PopularTags</h2>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- [ breadcrumb ] end -->

@include('includes.admin.form-both')

<form class="uplogo-form" id="geniusform" action="{{route('admin.generalsettings.update')}}" method="POST" enctype="multipart/form-data">
    {{ csrf_field() }}

    <div class="card">
        <div class="card-header">
            <h5>{{ __('Popular Tags Settings') }}</h5>
        </div>
        <div class="card-body">
            <div class="row">
                <div class="col-md-12 mb-3">
                    <label class="form-label" for="tags">{{ __('Tags') }} <small class="text-muted">({{ __('Separated By Comma') }})</small></label>
                    <input type="text" placeholder="{{ __('Tags') }}" class="form-control tags" id="tags" name="tags" value="{{$data->tags}}">
                </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>{{ __('Save Changes') }}
            </button>
        </div>
    </div>
</form>

@endsection

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