2015-03-16 22:45:25 +01:00
|
|
|
@extends('public.header')
|
|
|
|
|
|
|
|
@section('content')
|
2016-12-05 09:32:18 +01:00
|
|
|
|
2015-03-16 22:45:25 +01:00
|
|
|
<style type="text/css">
|
2015-10-13 17:44:01 +02:00
|
|
|
table.dataTable thead > tr > th, table.invoice-table thead > tr > th {
|
|
|
|
background-color: {{ $color }} !important;
|
|
|
|
}
|
|
|
|
|
2016-12-05 09:32:18 +01:00
|
|
|
.pagination>.active>a,
|
|
|
|
.pagination>.active>span,
|
|
|
|
.pagination>.active>a:hover,
|
|
|
|
.pagination>.active>span:hover,
|
|
|
|
.pagination>.active>a:focus,
|
2015-10-13 17:44:01 +02:00
|
|
|
.pagination>.active>span:focus {
|
|
|
|
background-color: {{ $color }};
|
|
|
|
border-color: {{ $color }};
|
|
|
|
}
|
|
|
|
|
|
|
|
table.table thead .sorting:after { content: '' !important }
|
|
|
|
table.table thead .sorting_asc:after { content: '' !important }
|
|
|
|
table.table thead .sorting_desc:after { content: '' !important }
|
|
|
|
table.table thead .sorting_asc_disabled:after { content: '' !important }
|
|
|
|
table.table thead .sorting_desc_disabled:after { content: '' !important }
|
2015-03-16 22:45:25 +01:00
|
|
|
|
|
|
|
</style>
|
|
|
|
|
2016-03-04 15:03:55 +01:00
|
|
|
<div class="container" id="main-container" style="min-height:800px">
|
2015-03-16 22:45:25 +01:00
|
|
|
|
|
|
|
<p> </p>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<div id="top_right_buttons" class="pull-right">
|
2015-10-13 17:44:01 +02:00
|
|
|
<input id="tableFilter" type="text" style="width:140px;margin-right:17px" class="form-control pull-left" placeholder="{{ trans('texts.filter') }}"/>
|
2015-03-16 22:45:25 +01:00
|
|
|
</div>
|
|
|
|
-->
|
|
|
|
|
2017-04-03 21:06:09 +02:00
|
|
|
@if($entityType == ENTITY_INVOICE && $client->hasRecurringInvoices())
|
2016-05-06 19:26:37 +02:00
|
|
|
<div class="pull-right" style="margin-top:5px">
|
2017-04-03 21:06:09 +02:00
|
|
|
{!! Button::primary(trans("texts.recurring_invoices"))->asLinkTo(URL::to('/client/invoices/recurring')) !!}
|
2016-05-06 19:26:37 +02:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<h3>{{ $title }}</h3>
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2015-04-06 08:58:47 +02:00
|
|
|
{!! Datatable::table()
|
2015-03-16 22:45:25 +01:00
|
|
|
->addColumn($columns)
|
2016-12-05 09:32:18 +01:00
|
|
|
->setUrl(route('api.client.' . $entityType . 's'))
|
2015-03-16 22:45:25 +01:00
|
|
|
->setOptions('sPaginationType', 'bootstrap')
|
2015-04-06 08:58:47 +02:00
|
|
|
->render('datatable') !!}
|
2015-03-16 22:45:25 +01:00
|
|
|
</div>
|
|
|
|
|
2017-04-03 21:06:09 +02:00
|
|
|
@if ($entityType == ENTITY_RECURRING_INVOICE)
|
2016-05-06 19:26:37 +02:00
|
|
|
{!! Former::open(URL::to('/client/invoices/auto_bill'))->id('auto_bill_form') !!}
|
|
|
|
<input type="hidden" name="public_id" id="auto_bill_public_id">
|
|
|
|
<input type="hidden" name="enable" id="auto_bill_enable">
|
|
|
|
{!! Former::close() !!}
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
function setAutoBill(publicId, enable){
|
|
|
|
$('#auto_bill_public_id').val(publicId);
|
|
|
|
$('#auto_bill_enable').val(enable?'1':'0');
|
|
|
|
$('#auto_bill_form').submit();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
2016-12-05 09:32:18 +01:00
|
|
|
<p> </p>
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2016-12-05 09:32:18 +01:00
|
|
|
@stop
|