@extends('admin.layouts.master') @section('title') Dashboard @endsection @section('content') @role(['admin', 'superadmin'])
Total Users

{{ $users }}

Total Review

{{ $reviews }}

Total Community Post

{{ $users }}

Total Chef Stories

{{ $chiefPosts }}

Total Job Post

{{ $jobs }}

Total Job Applies

{{ $jobApplies }}

Total Message

{{ $messages }}

Total Contact Users

{{ $contacts }}

Latest Users

@foreach ($latestUsers as $key => $user) @endforeach
No Name Email Joined At
{{ $key + 1 }} {{ $user->name }} {{ $user->email }} {{ $user->created_at->format('d M Y') }}

Latest Reviews

@foreach ($latestReviews as $key => $review) @endforeach
No Created By Rating Action
{{ $key + 1 }} {{ $review->user->name ?? 'N/A' }}
@for ($i = 1; $i <= 5; $i++) @if ($i <= $review->rating) @else @endif @endfor
({{ $review->rating }})
@can('review-edit') @if($review->status == '0') Activate @else Deactivate @endif @endcan

Communities

@foreach ($posts as $key => $post) @endforeach
No Created By Image Date Content Engagement Status
{{ $key + 1 }}
@if($post->user->image ?? false) @else
{{ substr($post->user->name ?? 'N/A', 0, 1) }}
@endif
{{ $post->user->name ?? 'N/A' }}
@if($post->images->count() > 0)
@foreach($post->images as $image) @endforeach
@else No Image @endif
{{ \Carbon\Carbon::parse($post->date)->format('d M Y') }}
@if($post->description)

{{ Str::limit($post->description, 100) }}

@endif
{{ $post->status == '0' ? 'Active' : 'Inactive' }}

Chef Stories

@foreach ($latestChiefPosts as $key => $post) @endforeach
No Created By Image Date Content Engagement Status
{{ $key + 1 }}
@if($post->user->image ?? false) @else
{{ substr($post->user->name ?? 'N/A', 0, 1) }}
@endif
{{ $post->user->name ?? 'N/A' }}
@if($post->images->count() > 0)
@foreach($post->images as $image) @endforeach
@else No Image @endif
{{ \Carbon\Carbon::parse($post->date)->format('d M Y') }}
@if($post->description)

{{ Str::limit($post->description, 100) }}

@endif
{{ $post->status == '0' ? 'Active' : 'Inactive' }}

Jobs

@foreach ($latestJobs as $key => $job) @endforeach
No Title Location Salary Restaurant Name Experience
{{ $key + 1 }} {{ Str::limit($job->title, 20) }} {{ $job->city }} {{ $job->salary }} {{ $job->restaurant_name }} {{ $job->experience }}

Job Applications

@foreach ($latestApplications as $key => $application) @endforeach
# User Job Applied At
{{ $key + 1 }} {{ Str::limit($application->user->name ?? 'N/A', 15) }} {{ Str::limit($application->job->title ?? 'N/A', 20) }} {{ $application->created_at->format('M d') }}
@endrole @endsection @push('js') @endpush