@extends('admin.layouts.container')

@section('content')
<div class="side-title">
    <h3>add user</h3>
</div>

<div class="border-item">
    <form class="form-row" method="post" action="{{ $action }}">
        @if($task ?? ''  && $task->id)
            @method('PUT')
        @endif
        @CSRF
        
        <div class="form-group col-lg-6">
            <label>{{ __('articles.title') }}</label>
            <input type="text" class="form-control" name="title" placeholder="{{ __('articles.title') }}" value="{{ old('title', $task->title ?? '') }}">
        </div>

        <div class="form-group col-lg-6">
            <label>{{ __('articles.slug') }}</label>
            <input type="text" class="form-control" name="slug" placeholder="{{ __('articles.slug') }}" value="{{ old('slug', $task->slug ?? '') }}">
        </div>

        <div class="form-group col-lg-12">
            <label>{{ __('articles.keywords') }}</label>
            <input type="text" class="form-control" name="keywords" placeholder="{{ __('articles.keywords') }}" value="{{ old('keywords', $task->keywords ?? '') }}">
        </div>
        
        <div class="form-group col-lg-12">
            <label>{{ __('articles.meta_description') }}</label>
            <textarea class="form-control" name="meta_description" placeholder="{{ __('articles.meta_description') }}">{{ old('meta_description', $task->meta_description ?? '') }}</textarea>
        </div>
        
        <div class="form-group col-lg-12">
            <label>{{ __('articles.description') }}</label>
            <textarea class="form-control" name="description" placeholder="{{ __('articles.description') }}">{{ old('description', $task->description ?? '') }}</textarea>
        </div>
        
        <div class="text-center mt-5 col-12">
            <button class="butn"><span>submit</span></button>
        </div>
    </form>
</div>

@endsection