@extends('admin.layouts.app')


@section('content')

<h2 class="mb-3">{{awtTrans('New Video')}}</h2>

{!! Form::open(['method' => 'POST', 'route' => 'admin.videos.store', 'files' => true]) !!}
<div class="row">
    <div class="col-md-12">

        <div class="form-group">
            {!! Form::label('link', awtTrans('Video Link')) !!}
            {!! Form::text('link', null, ['class' => $errors->has('link') ? 'form-control is-invalid' : 'form-control']) !!}
            <small class="text-danger">{{ $errors->first('link') }}</small>
        </div>

    </div>
</div>

<div class="row">

    <div class="form-group col-lg-12">
        <button type="button" class="btn btn-info btn-block" id="add-keyword"><i class="fas fa-plus"></i></button>
    </div>
</div>

<div class="row" id="append-keyword">

    <div class="row col-lg-12">


        <div class="form-group col-lg-6">
            {!! Form::label('keyword_ar', awtTrans('الكلمات المفتاحية بالعربي')) !!}
            {!! Form::text('keyword_ar[]', null, [ 'class' => 'form-control']) !!}
            <small class="text-danger">{{ $errors->first('keyword_ar') }}</small>
        </div>

        <div class="form-group col-lg-6">
            {!! Form::label('keyword_en', awtTrans('الكلمات المفتاحية بالانجليزي')) !!}
            {!! Form::text('keyword_en[]', null, [ 'class' => 'form-control']) !!}
            <small class="text-danger">{{ $errors->first('keyword_en') }}</small>
        </div>

    </div>

</div>


{!! Form::submit(awtTrans('New Video'), ['class' => 'btn btn-success']) !!}
<a href="{{ route('admin.videos.index') }}" class="btn btn-primary"><i class="fas fa-arrow-left  fa-sm  "></i> {{awtTrans('Back')}}</a>

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

@endsection