@extends('layouts.dashboard')
@section('title', 'Dashboard | ' . Options::get('title') )
@section('content')
| Ticket ID |
Ticket title |
Department |
Date |
Client |
Status |
{{-- Check if there's any tickets --}}
@if( count($tickets) )
{{-- Loop through over the tickets --}}
@foreach($tickets as $ticket)
| #{{ $ticket->id }} |
{{ str_limit($ticket->subject, 30) }}
|
{{ $ticket->getDepartment() }} |
{{ $ticket->created_at->diffForHumans() }} |
{{ $ticket->user->first_name }} |
{{ $ticket->status }}
|
@endforeach
{{-- End the Loop --}}
@else
{{-- If no rows found --}}
| No tickets found |
@endif
{{-- End the if condiction --}}
| Staff name |
Department |
assigned task |
solved |
@if( count( $staffs ) )
{{-- Loop through over the staffs --}}
@foreach( $staffs as $staff )
| {{ $staff->fullName() }} |
{{ $staff->getDepartmentName() }} |
{{ $staff->assignedTickets()->count() }} |
{{ $staff->solvedTickets()->count() }} |
@endforeach
{{-- End the loop --}}
@else
{{-- If no rows found --}}
| No staffs found |
@endif
{{-- End the if condiction --}}
@stop
@section('script')
@include('partials.dashboard.statistics')
@stop