@extends('layouts.admin') @section('content')

Admin Dashboard

  • {{$users_count}}
    Total Users
  • {{$tickets_count}}
    Total Tickets
  • {{$languages_count}}
    Total languages
Users
Sr No
Username
Role
Email
Date
Status
@forelse($users as $user)
{{$user_name_char}}
{{$user->name}}
{{$user->role->role}}
{{$user->email}}
{{$user_date}}
Active
@empty
User is not available.
@endforelse
Tickets
Ticket #ID
Ticket Name
Priority
Category
Date
Status
@forelse($tickets as $ticket)
{{$user_name_char}}
{{$ticket->ticket_name}}
{{$ticket->priority}}
{{$ticket->category}}
{{$ticket_date}}
{{$status}}
@empty
Ticket is not available.
@endforelse
Users Session
Sr No
Username
Login
Logout
Total Session Time
@forelse($usersessions as $usersession)
{{$user_name_char}}
{{$usersession->username}}
01 Jan 1970, 05:30 AM
--
--
@empty
Session is not available.
@endforelse
Languages
    @foreach($activelanguages as $activelanguage)
  • {{$activelanguage->language_name}}Active
  • @endforeach
Notifications
    @forelse($unreadnotifications as $notification)
  • @php date_default_timezone_set('Asia/Kolkata'); $date = $notification->created_at; $noti_date = date('d M, Y', strtotime($date)); @endphp
    {{$noti_date}}
    @if(empty($notification->data['data']))

    {{@$notification->data['user']['name']}} {{@$notification->data['message']}}

    @else

    {{@$notification->data['user']['name']}} {{@$notification->data['message']}} {{@$notification->data['data']['ticket_name']}}

    @endif @php date_default_timezone_set('Asia/Kolkata'); $date = $notification->created_at; $noti_time = date('h:i A', strtotime($date)); @endphp {{$noti_time}}
  • @empty
  • There are no notifiction.

  • @endforelse
@endsection