@extends('layouts.admin')

@section('title', __('Add New Tag'))

@section('content')

    {!! Form::open([
        'route' => 'admin.tags.store',
        'files' => true,
        //'novalidate' => 'novalidate',
        'method' => 'post'
    ]) !!}

    <div class="card card-primary card-outline">
        <div class="card-header">{{ __('Add New tag') }}</div>
        <div class="card-body">
            <div class="form-group">
                {{ Form::label('name', __('Name')) }}
                {{ Form::text('name', old('name'), ['class' => 'form-control', 'required' => true]) }}
            </div>

            <div class="form-group">
                {{ Form::label('slug', __('Slug(URL Key)')) }}
                {{ Form::text('slug', old('slug'), ['class' => 'form-control']) }}
            </div>

            <div class="form-group">
                {{ Form::label('status', __('Status')) }}
                {{ Form::select('status', [
                    0 => __('No'),
                    1 => __('Yes'),
                ], old('status'), ['placeholder' => __('Choose'), 'class' => 'form-control', 'required' => true]) }}
            </div>

            <div class="form-group">
                {{ Form::label('description', __('Description')) }}
                {{ Form::textarea('description', old('description'), ['class' => 'form-control', 'rows' => 3]) }}
            </div>

            <h3>{{ __('SEO') }}</h3>

            <div class="form-group">
                {{ Form::label('seo[title]', __('SEO Title')) }}
                {{ Form::text('seo[title]', old('seo[title]'), ['class' => 'form-control']) }}
            </div>

            <div class="form-group">
                {{ Form::label('seo[keywords]', __('SEO Keywords')) }}
                {{ Form::text('seo[keywords]', old('seo[keywords]'), ['class' => 'form-control']) }}
            </div>

            <div class="form-group">
                {{ Form::label('seo[description]', __('SEO Description')) }}
                {{ Form::textarea('seo[description]', old('seo[description]'), ['class' => 'form-control', 'rows' => 3]) }}
            </div>

            <div class="form-group">
                {{ Form::label('seo[share_image]', __('Share Image')) }}
                {{ Form::text('seo[share_image]', old('seo[share_image]'), ['class' => 'form-control']) }}
            </div>

            <div class="form-group">
                {{ Form::submit(__('Submit'), ['class' => 'btn btn-primary']) }}
            </div>
        </div>
    </div>

    {!! Form::close() !!}

@endsection
