@extends('layouts.dashboard')
{{-- Dynamic site title --}}
@if( Request::get('term') )
@section('title', 'Search for '. Request::get('term') . ' | ' . Options::get('title') )
@else
@section('title', ucwords($view) . ' Tickets | ' . Options::get('title') )
@endif
@section('content')
@if( Request::get('term') )
Showing Search results for '{{ Request::get('term') }}'
@else
{{ $view }} Tickets
@endif
| Ticket ID |
Ticket title |
Department |
Date |
Client |
Status |
Action |
{{-- 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->fullName() }} |
{{ ucwords($ticket->status) }}
|
|
@endforeach
{{-- End the Loop --}}
@else
{{-- If no rows found --}}
| No tickets found. |
@endif
{{-- End the if condiction --}}
{{ $tickets->appends(['term' => Request::get('term')])->render() }}
@stop