@extends('frontend.template', ['title'=>'tickets']) @section('content') @if(count($tickets) > 0 )
@foreach($tickets as $ticket) @endforeach
Status Code Title Category Quoted Price Requested On Quotation Invoice
{{ ViewHelper::ticketStatFrontend($ticket) }} @if($ticket->stat == TicketStat::Quoted || $ticket->stat == TicketStat::Invoiced) @endif {{ $ticket->ticket_code }} @if($ticket->stat == TicketStat::Drafted)
@endif
{{ $ticket->title }} {{ isset($categories[$ticket->category_id]) ? $categories[$ticket->category_id] : '' }} {{ ViewHelper::formatCurrency($ticket->quoted_price) }} {{ ViewHelper::formatDate($ticket->requested_on) }} @if(TicketStat::$values[$ticket->stat]!='Drafted' && TicketStat::$values[$ticket->stat]!='Opened') ticket_id.'/download?type=quotation')}}' class='btn btn-warning'> Download @endif @if(TicketStat::$values[$ticket->stat]=='Invoiced' && TicketStat::$values[$ticket->stat]!='Paid') ticket_id.'/download?type=invoice')}}' class='btn btn-warning'> Download @endif
@else
No tickets
@endif
@endsection @section('script') @endsection