@extends("admin.template") @section("content")

Tickets

@if(ViewHelper::hasAccess('ticket_draft')) Email Setting @endif
{!! csrf_field() !!}
Status Code Title Show top
{!! Form::select('stat', TicketStat::getValues(), isset($search['stat']) ? $search['stat'] : '', ['class'=>'form-control search-stat', 'placeholder'=>'']) !!} {!! Form::text('ticket_code', '', ['class'=>'form-control search-txt']) !!} {!! Form::text('title', '', ['class'=>'form-control search-txt']) !!} {!! Form::text('limit', 100, ['class'=>'form-control search-txt']) !!}
@if(Session::has('search_result'))
{{ Session::get('search_result') }}
@endif
@foreach($tickets as $ticket) @endforeach
Status Code Title Category Quoted Price Final Price Requested By Requested Date Quotation Invoice
{{ ViewHelper::ticketStatFrontend($ticket) }} {{ $ticket->ticket_code }} @if($ticket->stat == TicketStat::Paid)
@endif
{{ $ticket->title }} {{ isset($categories[$ticket->category_id]) ? $categories[$ticket->category_id] : '' }} {{ $ticket->quoted_price }} {{ $ticket->final_price==null?"N/A":$ticket->final_price }} {{ $ticket->requested_by }} {{ 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
@endsection @section('css') @endsection @section('script') @endsection