{{ $pageTitle ?? trans('messages.list') }}
@if($auth_user->can('blog list')) {{ __('messages.back') }} @endif
{{ Form::model($blogdata,['method' => 'POST','route'=>'blog.store', 'enctype'=>'multipart/form-data', 'data-toggle'=>"validator" ,'id'=>'blog'] ) }} {{ Form::hidden('id') }}
{{ Form::label('title',trans('messages.title').' *',['class'=>'form-control-label'], false ) }} {{ Form::text('title',old('title'),['placeholder' => trans('messages.title'),'class' =>'form-control','required']) }}
@if(auth()->user()->hasAnyRole(['admin','demo_admin']))
{{ Form::label('name', __('messages.select_name',[ 'select' => __('messages.author') ]),['class'=>'form-control-label'],false) }}
{{ Form::select('author_id', [ optional($blogdata->author)->id => optional($blogdata->author)->display_name ], optional($blogdata->author)->id, [ 'class' => 'select2js form-group', 'id' => 'author_id', 'data-placeholder' => __('messages.select_name',[ 'select' => __('messages.author') ]), 'data-ajax--url' => route('ajax-list', ['type' => 'provider']), ]) }}
@endif
{{ Form::label('status',trans('messages.status').' *',['class'=>'form-control-label'],false) }} {{ Form::select('status',['1' => __('messages.active') , '0' => __('messages.inactive') ],old('status'),[ 'id' => 'role' ,'class' =>'form-control select2js','required']) }}
@if(getMediaFileExit($blogdata, 'blog_attachment')) @php $attchments = $blogdata->getMedia('blog_attachment'); $file_extention = config('constant.IMAGE_EXTENTIONS'); @endphp

{{ __('messages.attached_files') }}

@foreach($attchments as $attchment )