@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', ]) !!}
{{ Form::label('title', __('Title'), ['class' => 'form-label col-12']) }} {{ Form::text('title', $list->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', $list->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

{{-- {{ print_r($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