@extends('layouts.index') @section('page_title') All Brokers @endsection @section('news_active') nav-item active @endsection @section('pg_name') All Brokers Details @endsection @section('headaddons') @endsection @section('content') @if (count($errors) > 0)
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif @if (session('success'))
{{ session('success') }}
@endif
@foreach ($news as $item)
@if ($item->newsPicture) News Image @endif
{{ $item->newsTitle }}
{{ Str::limit($item->newsContent, 100, '...') }}
@foreach ($item->comments as $comment)
{{$comment->authorName}} - {{ \Carbon\Carbon::parse($comment->created_at)->format('d F Y') }} : {{ Str::limit($comment->authorContent, 100) }} more...
@csrf @method('DELETE')

@endforeach
@endforeach
{{ $news->links('pagination::bootstrap-4') }}
@endsection @section('scripts') @endsection