@extends('layouts.dashboard') @section('title', 'Dashboard | ' . Options::get('title') ) @section('content')
{{-- Check if there's any tickets --}} @if( count($tickets) ) {{-- Loop through over the tickets --}} @foreach($tickets as $ticket) @endforeach {{-- End the Loop --}} @else {{-- If no rows found --}} @endif {{-- End the if condiction --}}
Ticket ID Ticket title Department Date Client Status
#{{ $ticket->id }} {{ str_limit($ticket->subject, 30) }} {{ $ticket->getDepartment() }} {{ $ticket->created_at->diffForHumans() }} {{ $ticket->user->first_name }} {{ $ticket->status }}
No tickets found

New Clients

    {{-- Check if there's any clients --}} @if( count( $clients) ) {{-- Loop through over the clients --}} @foreach( $clients as $client )
  • {{ $client->fullName() }}

    {{ $client->created_at->diffForHumans() }}
  • @endforeach {{-- End the loop --}} @else {{-- If no rows found --}}
  • No clients

  • @endif {{-- End the if condiction --}}

Staff status

@if( count( $staffs ) ) {{-- Loop through over the staffs --}} @foreach( $staffs as $staff ) @endforeach {{-- End the loop --}} @else {{-- If no rows found --}} @endif {{-- End the if condiction --}}
Staff name Department assigned task solved
{{ $staff->fullName() }} {{ $staff->getDepartmentName() }} {{ $staff->assignedTickets()->count() }} {{ $staff->solvedTickets()->count() }}
No staffs found

statistics of this month

@stop @section('script') @include('partials.dashboard.statistics') @stop