@extends('public.header') @section('content')

 

@if(($entityType == ENTITY_INVOICE || $entityType == ENTITY_RECURRING_QUOTE) && $client->hasRecurringInvoices())
{!! Button::primary(trans("texts.recurring_invoices"))->asLinkTo(URL::to('/client/invoices/recurring')) !!}
@endif @if($entityType == ENTITY_TICKET) {!! Button::primary(trans('texts.new_ticket')) ->asLinkTo(URL::to('/client/tickets/create')) ->withAttributes(['class' => 'pull-right']) ->appendIcon(Icon::create('plus-sign')) !!} @endif @if(($entityType == ENTITY_QUOTE || $entityType == ENTITY_RECURRING_INVOICE) && $client->hasRecurringQuotes())
{!! Button::primary(trans("texts.recurring_quotes"))->asLinkTo(URL::to('/client/invoices/recurring_quotes')) !!}
@endif

{{ $title }}

{!! Datatable::table() ->addColumn($columns) ->setUrl(route('api.client.' . $entityType . 's')) ->setOptions('sPaginationType', 'bootstrap') ->setOptions('aaSorting', [[$sortColumn, 'desc']]) ->render('datatable') !!}
@if ($entityType == ENTITY_RECURRING_INVOICE) {!! Former::open(URL::to('/client/invoices/auto_bill'))->id('auto_bill_form') !!} {!! Former::close() !!} @endif

 

@stop