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

@yield('title')

@endsection @section('content')
{{ __('Update Article') }}

{!! Form::open([ 'route' => ['article.update', $id], 'data-parsley-validate', 'files' => true, 'method' => 'PATCH', ]) !!}
{{-- Title --}}
{{ Form::label('title', __('Title'), ['class' => 'form-label col-12']) }} {{ Form::text('title', $list->title, [ 'class' => 'form-control ', 'placeholder' => trans('Title'), 'data-parsley-required' => 'true', 'id' => 'title', ]) }}
{{-- Slug --}}
{{ Form::label('slug', __('Slug'), ['class' => 'form-label col-12']) }} {{ Form::text('slug', $list->slug_id, [ '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', $list->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)
{{ $row->title }}
@php echo Str::substr(strip_tags($row->description), 0, 180) . '...'; @endphp
@endforeach
@endsection @section('script') @endsection