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

{{ $title }}

Open New Ticket

@if($tickets) @foreach($tickets as $ticket)
...
priority) { case '1': $priority="Low"; break; case '2': $priority="Medium"; break; case '3': $priority="High"; break; case '4': $priority="Urgent"; break; default: break; } ?> {{ @$ticket->user->company_data?$ticket->user->company_data->name:'' }}

{{ $ticket->title }} {!! $priority !!}

{{ $ticket->details }}

Details

{{ $ticket->user?$ticket->user->name:'' }}      {{ $ticket->created_user?$ticket->created_user->name:'' }}   {{ date('d M, Y',strtotime($ticket->created_at)) }}    status) { case '0': $status='Initiated'; break; case '1': $status='In Process'; break; case '2': $status='Onhold'; break; case '3': $status='Closed'; break; default: # code... break; } ?> {{ $status }}


@endforeach
{!! $tickets->render() !!}
@endif
@stop @section('style') @stop