Edit News

@csrf @method('PUT')
@error('title')

{{ $message }}

@enderror
@error('company_name')

{{ $message }}

@enderror
@error('date_published')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror

News Images

@if($news->images->firstWhere('image_type', 'main')) @php $mainImage = $news->images->firstWhere('image_type', 'main'); @endphp
Main Image
@endif @error("main_image")

{{ $message }}

@enderror
@if($news->images->firstWhere('image_type', 'featured')) @php $featuredImage = $news->images->firstWhere('image_type', 'featured'); @endphp
Featured Image
@endif @error("featured_image")

{{ $message }}

@enderror
@if($news->images->firstWhere('image_type', 'left_image')) @php $leftImage = $news->images->firstWhere('image_type', 'left_image'); @endphp
Left Image
@endif @error("left_image")

{{ $message }}

@enderror
@if($news->images->firstWhere('image_type', 'right_image')) @php $rightImage = $news->images->firstWhere('image_type', 'right_image'); @endphp
Right Image
@endif @error("right_image")

{{ $message }}

@enderror

Descriptions

@for ($i = 0; $i < 2; $i++)
@error('descriptions.' . $i . '.description')

{{ $message }}

@enderror
@endfor