@extends('layouts.main') @section('title') {{ __('Add Article') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
New Article

{!! Form::open(['route' => 'article.store', 'data-parsley-validate', 'files' => true]) !!}
{{ Form::label('title', __('Title'), ['class' => 'form-label col-12']) }} {{ Form::text('title', '', [ 'class' => 'form-control ', 'placeholder' => 'Title', 'data-parsley-required' => 'true', 'id' => 'title', ]) }}
{{ Form::label('category', __('Category'), ['class' => 'form-label col-12 ']) }}
{{ Form::label('image', __('Image'), ['class' => 'col-12 form-label']) }}
{{ Form::label('description', __('Description'), ['class' => 'form-label col-12']) }} {{ Form::textarea('description', '', [ 'class' => 'form-control ', 'id' => 'tinymce_editor', 'data-parsley-required' => 'true', ]) }}
{{ Form::label('title', __('Meta Title'), ['class' => 'form-label text-center']) }}
0
{{ Form::label('title', __('Meta Keywords'), ['class' => 'form-label text-center']) }}
{{ Form::label('description', __('Meta Description'), ['class' => 'form-label text-center']) }}
0
{!! Form::close() !!}
Recent Articles

@foreach ($recent_articles as $row)
{{ $row->title }}
@php echo Str::substr(strip_tags($row->description), 0, 180) . '...'; @endphp
@endforeach
@endsection @section('script') @endsection