@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]) !!}
{{-- Title --}}
{{ Form::label('title', __('Title'), ['class' => 'form-label col-12']) }} {{ Form::text('title', '', [ 'class' => 'form-control ', 'placeholder' => 'Title', 'data-parsley-required' => 'true', 'id' => 'title', ]) }}
{{-- Slug --}}
{{ Form::label('slug', __('Slug'), ['class' => 'form-label col-12']) }} {{ Form::text('slug', '', [ 'class' => 'form-control ', 'placeholder' => __('Slug'), 'id' => 'slug' ]) }} {{ __("Only Small English Characters, Numbers And Hypens Allowed") }}
{{-- Category --}}
{{ Form::label('category', __('Category'), ['class' => 'form-label col-12 ']) }}
{{-- Image --}}
{{ Form::label('image', __('Image'), ['class' => 'col-12 form-label']) }}
{{-- Description --}}
{{ Form::label('description', __('Description'), ['class' => 'form-label col-12']) }} {{ Form::textarea('description', '', [ 'class' => 'form-control ', 'id' => 'tinymce_editor', 'data-parsley-required' => 'true', ]) }}
{{-- Meta Title --}}
{{ Form::label('title', __('Meta Title'), ['class' => 'form-label text-center']) }}
0
{{-- Meta Keywords --}}
{{ Form::label('title', __('Meta Keywords'), ['class' => 'form-label text-center']) }}
{{-- Meta Description --}}
{{ Form::label('description', __('Meta Description'), ['class' => 'form-label text-center']) }}
0
{{-- Save Button --}} {!! Form::close() !!}
{{ __('Recent Articles') }}

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