@extends('layouts.main') @section('title') {{ __('dashboard') }} @endsection @section('content')

{{ __('dashboard') }}

{{ __('category_wise_news') }}

{{ __('language_wise_news') }}

{{ __('latest_category') }}

@if (count($recent_categories) == 0)

{{ __('could_not_find_data') }}

{{ __('make_alteast_entry') }}

@else
@foreach ($recent_categories as $row)
@if ($row->image) category @endif {{ $row->category_name }}
@endforeach
@endif

{{ __('most_viewed_news') }}

@if (count($monthly_news_view) == 0)

{{ __('could_not_find_data') }}

{{ __('make_alteast_entry') }}

@else
@foreach ($monthly_news_view as $item)
{{ $item->title }}
{{ $item->viewcount }}
{{ $item->title }}
@endforeach
@endif

{{ __('language_wise_survey') }}

{{ __('latest_comment') }}

@if (count($recent_comments) == 0)

{{ __('could_not_find_data') }}

{{ __('make_alteast_entry') }}

@else
@foreach ($recent_comments as $row)
User Image
{{ $row->user->name }} {{ $row->date }} {{-- NEED TO TRIM THE MESSAGE TO 100 CHARACTERS --}} {{ Str::limit($row->message, 100) }} {{-- @if (strlen($row->message) > 100) {{ __('read_more') }} @endif --}}
@endforeach
@endif
@endsection @section('css') @endsection @section('js') @endsection @section('script') @endsection