@php $statusLabelText = 'Editing, but not yet saved'; $statusLabelStyle = 'label-default-status'; switch ($item->status) { case 'pending': $statusLabelText = 'Pending and saved'; break; case 'archived': $statusLabelText = 'Archived'; break; case 'live': $statusLabelText = 'Live'; $statusLabelStyle = 'label-live-status'; break; } $isNewsItems = $item->adCategory->api_name == 'news'; @endphp
{!! Form::text( 'item_name', old('item_name') ? old('item_name') : ($item->name === 'unknown' ? '' : $item->name), ['class' => 'form-control', 'form' => 'edit-item'] ) !!}
@include('advertisement.edit.images')
@if ($isNewsItems) {!! Form::textarea('item_description', old('item_description')?:$item->description, ['class' => 'form-control', 'form' => 'edit-item', 'id' => 'item_description']) !!} @else {!! Form::textarea('item_description', old('item_description')?:$item->description, ['class' => 'form-control', 'form' => 'edit-item']) !!} @endif

{{$statusLabelText}}



{!! Form::hidden('item_status', $item->status, ['form' => 'edit-item']) !!}