Invoice, Bill show page added many stack feature..
This commit is contained in:
parent
03fd7f5ddd
commit
4e221102b4
@ -5,12 +5,15 @@
|
||||
@section('content')
|
||||
<div class="box box-success">
|
||||
<section class="invoice">
|
||||
@stack('invoice_badge_start')
|
||||
<div id="badge">
|
||||
<div class="arrow-up"></div>
|
||||
<div class="label {{ $invoice->status->label }}">{{ trans('invoices.status.' . $invoice->status->code) }}</div>
|
||||
<div class="arrow-right"></div>
|
||||
</div>
|
||||
@stack('invoice_badge_end')
|
||||
|
||||
@stack('invoice_header_start')
|
||||
<div class="row invoice-header">
|
||||
<div class="col-xs-7">
|
||||
@if (setting('general.invoice_logo'))
|
||||
@ -21,114 +24,185 @@
|
||||
<img src="{{ asset('public/img/company.png') }}" class="invoice-logo" />
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5 invoice-company">
|
||||
<address>
|
||||
<strong>{{ setting('general.company_name') }}</strong><br>
|
||||
{{ setting('general.company_address') }}<br>
|
||||
{!! nl2br(setting('general.company_address')) !!}<br>
|
||||
@if (setting('general.company_tax_number'))
|
||||
{{ trans('general.tax_number') }}: {{ setting('general.company_tax_number') }}<br>
|
||||
{{ trans('general.tax_number') }}: {{ setting('general.company_tax_number') }}<br>
|
||||
@endif
|
||||
<br>
|
||||
@if (setting('general.company_phone'))
|
||||
{{ setting('general.company_phone') }}<br>
|
||||
{{ setting('general.company_phone') }}<br>
|
||||
@endif
|
||||
{{ setting('general.company_email') }}
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
@stack('invoice_header_end')
|
||||
|
||||
@stack('invoice_information_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-7">
|
||||
{{ trans('invoices.bill_to') }}
|
||||
<address>
|
||||
@stack('name_input_start')
|
||||
<strong>{{ $invoice->customer_name }}</strong><br>
|
||||
{{ $invoice->customer_address }}<br>
|
||||
@stack('name_input_end')
|
||||
|
||||
@stack('address_input_start')
|
||||
{!! nl2br($invoice->customer_address) !!}<br>
|
||||
@stack('address_input_end')
|
||||
|
||||
@stack('tax_number_input_start')
|
||||
@if ($invoice->customer_tax_number)
|
||||
{{ trans('general.tax_number') }}: {{ $invoice->customer_tax_number }}<br>
|
||||
{{ trans('general.tax_number') }}: {{ $invoice->customer_tax_number }}<br>
|
||||
@endif
|
||||
@stack('tax_number_input_end')
|
||||
<br>
|
||||
@stack('phone_input_start')
|
||||
@if ($invoice->customer_phone)
|
||||
{{ $invoice->customer_phone }}<br>
|
||||
@endif
|
||||
@stack('phone_input_end')
|
||||
|
||||
@stack('email_start')
|
||||
{{ $invoice->customer_email }}
|
||||
@stack('email_input_end')
|
||||
</address>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5">
|
||||
<div class="table-responsive">
|
||||
<table class="table no-border">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ trans('invoices.invoice_number') }}:</th>
|
||||
<td class="text-right">{{ $invoice->invoice_number }}</td>
|
||||
</tr>
|
||||
@if ($invoice->order_number)
|
||||
@stack('invoice_number_input_start')
|
||||
<tr>
|
||||
<th>{{ trans('invoices.invoice_number') }}:</th>
|
||||
<td class="text-right">{{ $invoice->invoice_number }}</td>
|
||||
</tr>
|
||||
@stack('invoice_number_input_end')
|
||||
|
||||
@stack('order_number_input_start')
|
||||
@if ($invoice->order_number)
|
||||
<tr>
|
||||
<th>{{ trans('invoices.order_number') }}:</th>
|
||||
<td class="text-right">{{ $invoice->order_number }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>{{ trans('invoices.invoice_date') }}:</th>
|
||||
<td class="text-right">{{ Date::parse($invoice->invoiced_at)->format($date_format) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ trans('invoices.payment_due') }}:</th>
|
||||
<td class="text-right">{{ Date::parse($invoice->due_at)->format($date_format) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@stack('order_number_input_end')
|
||||
|
||||
@stack('invoiced_at_input_start')
|
||||
<tr>
|
||||
<th>{{ trans('invoices.invoice_date') }}:</th>
|
||||
<td class="text-right">{{ Date::parse($invoice->invoiced_at)->format($date_format) }}</td>
|
||||
</tr>
|
||||
@stack('invoiced_at_input_end')
|
||||
|
||||
@stack('due_at_input_start')
|
||||
<tr>
|
||||
<th>{{ trans('invoices.payment_due') }}:</th>
|
||||
<td class="text-right">{{ Date::parse($invoice->due_at)->format($date_format) }}</td>
|
||||
</tr>
|
||||
@stack('due_at_input_end')
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('invoice_information_end')
|
||||
|
||||
@stack('invoice_item_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-12 table-responsive">
|
||||
<table class="table table-striped">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ trans_choice('general.items', 1) }}</th>
|
||||
<th class="text-center">{{ trans('invoices.quantity') }}</th>
|
||||
<th class="text-right">{{ trans('invoices.price') }}</th>
|
||||
<th class="text-right">{{ trans('invoices.total') }}</th>
|
||||
</tr>
|
||||
@foreach($invoice->items as $item)
|
||||
<tr>
|
||||
@stack('actions_th_start')
|
||||
@stack('actions_th_end')
|
||||
|
||||
@stack('name_th_start')
|
||||
<th>{{ trans_choice($text_override['items'], 2) }}</th>
|
||||
@stack('name_th_end')
|
||||
|
||||
@stack('quantity_th_start')
|
||||
<th class="text-center">{{ trans($text_override['quantity']) }}</th>
|
||||
@stack('quantity_th_end')
|
||||
|
||||
@stack('price_th_start')
|
||||
<th class="text-right">{{ trans($text_override['price']) }}</th>
|
||||
@stack('price_th_end')
|
||||
|
||||
@stack('taxes_th_start')
|
||||
@stack('taxes_th_end')
|
||||
|
||||
@stack('total_th_start')
|
||||
<th class="text-right">{{ trans('invoices.total') }}</th>
|
||||
@stack('total_th_end')
|
||||
</tr>
|
||||
@foreach($invoice->items as $item)
|
||||
<tr>
|
||||
@stack('actions_td_start')
|
||||
@stack('actions_td_end')
|
||||
|
||||
@stack('name_td_start')
|
||||
<td>
|
||||
{{ $item->name }}
|
||||
@if ($item->sku)
|
||||
<br><small>{{ trans('items.sku') }}: {{ $item->sku }}</small>
|
||||
@endif
|
||||
</td>
|
||||
@stack('name_td_end')
|
||||
|
||||
@stack('quantity_td_start')
|
||||
<td class="text-center">{{ $item->quantity }}</td>
|
||||
@stack('quantity_td_end')
|
||||
|
||||
@stack('price_td_start')
|
||||
<td class="text-right">@money($item->price, $invoice->currency_code, true)</td>
|
||||
@stack('price_td_end')
|
||||
|
||||
@stack('taxes_td_start')
|
||||
@stack('taxes_td_end')
|
||||
|
||||
@stack('total_td_start')
|
||||
<td class="text-right">@money($item->total, $invoice->currency_code, true)</td>
|
||||
@stack('total_td_end')
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@stack('invoice_item_end')
|
||||
|
||||
@stack('invoice_total_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-7">
|
||||
@if ($invoice->notes)
|
||||
<p class="lead">{{ trans_choice('general.notes', 2) }}</p>
|
||||
@stack('notes_input_start')
|
||||
@if ($invoice->notes)
|
||||
<p class="lead">{{ trans_choice('general.notes', 2) }}</p>
|
||||
|
||||
<p class="text-muted well well-sm no-shadow" style="margin-top: 10px;">
|
||||
{{ $invoice->notes }}
|
||||
</p>
|
||||
@endif
|
||||
<p class="text-muted well well-sm no-shadow" style="margin-top: 10px;">
|
||||
{{ $invoice->notes }}
|
||||
</p>
|
||||
@endif
|
||||
@stack('notes_input_end')
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
@foreach($invoice->totals as $total)
|
||||
@if($total->code != 'total')
|
||||
@foreach ($invoice->totals as $total)
|
||||
@if ($total->code != 'total')
|
||||
@stack($total->code . '_td_start')
|
||||
<tr>
|
||||
<th>{{ trans($total['name']) }}:</th>
|
||||
<th>{{ trans($total->title) }}:</th>
|
||||
<td class="text-right">@money($total->amount, $invoice->currency_code, true)</td>
|
||||
</tr>
|
||||
@stack($total->code . '_td_end')
|
||||
@else
|
||||
@if ($invoice->paid)
|
||||
<tr class="text-success">
|
||||
@ -136,26 +210,35 @@
|
||||
<td class="text-right">- @money($invoice->paid, $invoice->currency_code, true)</td>
|
||||
</tr>
|
||||
@endif
|
||||
@stack('grand_total_td_start')
|
||||
<tr>
|
||||
<th>{{ trans($total['name']) }}:</th>
|
||||
<th>{{ trans($total->name) }}:</th>
|
||||
<td class="text-right">@money($total->amount - $invoice->paid, $invoice->currency_code, true)</td>
|
||||
</tr>
|
||||
@stack('grand_total_td_end')
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('invoice_total_end')
|
||||
|
||||
@stack('box_footer_start')
|
||||
<div class="box-footer row no-print">
|
||||
<div class="col-md-10">
|
||||
@stack('button_print_start')
|
||||
<a href="{{ url('customers/invoices/' . $invoice->id . '/print') }}" target="_blank" class="btn btn-default">
|
||||
<i class="fa fa-print"></i> {{ trans('general.print') }}
|
||||
</a>
|
||||
@stack('button_print_end')
|
||||
|
||||
@stack('button_pdf_start')
|
||||
<a href="{{ url('customers/invoices/' . $invoice->id . '/pdf') }}" class="btn btn-default" data-toggle="tooltip" title="{{ trans('invoices.download_pdf') }}">
|
||||
<i class="fa fa-file-pdf-o"></i> {{ trans('general.download') }}
|
||||
</a>
|
||||
@stack('button_pdf_end')
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 no-padding-right">
|
||||
@ -170,8 +253,10 @@
|
||||
</div>
|
||||
<div id="confirm" class="col-md-12"></div>
|
||||
</div>
|
||||
@stack('box_footer_end')
|
||||
</section>
|
||||
</div>
|
||||
@stack('invoice_end')
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
@ -3,94 +3,147 @@
|
||||
@section('title', trans_choice('general.bills', 1) . ': ' . $bill->bill_number)
|
||||
|
||||
@section('content')
|
||||
@stack('recurring_message_start')
|
||||
@if (($recurring = $bill->recurring) && ($next = $recurring->next()))
|
||||
<div class="callout callout-info">
|
||||
<h4>{{ trans('recurring.recurring') }}</h4>
|
||||
<div class="callout callout-info">
|
||||
@stack('recurring_message_head_start')
|
||||
<h4>{{ trans('recurring.recurring') }}</h4>
|
||||
@stack('recurring_message_head_end')
|
||||
|
||||
<p>{{ trans('recurring.message', [
|
||||
'type' => mb_strtolower(trans_choice('general.bills', 1)),
|
||||
'date' => $next->format($date_format)
|
||||
]) }}
|
||||
</p>
|
||||
</div>
|
||||
@stack('recurring_message_body_start')
|
||||
<p>{{ trans('recurring.message', [
|
||||
'type' => mb_strtolower(trans_choice('general.bills', 1)),
|
||||
'date' => $next->format($date_format)
|
||||
]) }}
|
||||
</p>
|
||||
@stack('recurring_message_body_end')
|
||||
</div>
|
||||
@endif
|
||||
@stack('recurring_message_end')
|
||||
|
||||
@stack('status_message_start')
|
||||
@if ($bill->status->code == 'draft')
|
||||
<div class="callout callout-warning">
|
||||
<p>{!! trans('invoices.messages.draft') !!}</p>
|
||||
</div>
|
||||
<div class="callout callout-warning">
|
||||
@stack('status_message_body_start')
|
||||
<p>{!! trans('invoices.messages.draft') !!}</p>
|
||||
@stack('status_message_body_end')
|
||||
</div>
|
||||
@endif
|
||||
@stack('status_message_end')
|
||||
|
||||
@stack('timeline_start')
|
||||
@if ($bill->status->code != 'paid')
|
||||
<div class="row show-invoice">
|
||||
<div class="col-md-12 no-padding-right">
|
||||
<ul class="timeline">
|
||||
<li>
|
||||
<i class="fa fa-plus bg-blue"></i>
|
||||
<div class="row show-invoice">
|
||||
@stack('timeline_body_start')
|
||||
<div class="col-md-12 no-padding-right">
|
||||
<ul class="timeline">
|
||||
@stack('timeline_body_create_bill_start')
|
||||
<li id="timeline-create-bill">
|
||||
<i class="fa fa-plus bg-blue"></i>
|
||||
|
||||
<div class="timeline-item">
|
||||
<h3 class="timeline-header">{{ trans('bills.create_bill') }}</h3>
|
||||
<div class="timeline-item">
|
||||
@stack('timeline_body_create_bill_head_start')
|
||||
<h3 class="timeline-header">{{ trans('bills.create_bill') }}</h3>
|
||||
@stack('timeline_body_create_bill_head_end')
|
||||
|
||||
<div class="timeline-body">
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.created', ['date' => Date::parse($bill->created_at)->format($date_format)]) }}
|
||||
@stack('timeline_body_create_bill_body_start')
|
||||
<div class="timeline-body">
|
||||
@stack('timeline_body_create_bill_body_message_start')
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.created', ['date' => Date::parse($bill->created_at)->format($date_format)]) }}
|
||||
@stack('timeline_body_create_bill_body_message_end')
|
||||
|
||||
<a href="{{ url('expenses/bills/' . $bill->id . '/edit') }}" class="btn btn-default btn-xs">
|
||||
{{ trans('general.edit') }}
|
||||
</a>
|
||||
</div>
|
||||
@stack('timeline_body_create_bill_body_button_edit_start')
|
||||
<a href="{{ url('expenses/bills/' . $bill->id . '/edit') }}" class="btn btn-default btn-xs">
|
||||
{{ trans('general.edit') }}
|
||||
</a>
|
||||
@stack('timeline_body_create_bill_body_button_edit_end')
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-envelope bg-orange"></i>
|
||||
@stack('timeline_body_create_bill_body_end')
|
||||
</div>
|
||||
</li>
|
||||
@stack('timeline_body_create_bill_end')
|
||||
|
||||
<div class="timeline-item">
|
||||
<h3 class="timeline-header">{{ trans('bills.receive_bill') }}</h3>
|
||||
@stack('timeline_body_receive_bill_start')
|
||||
<li id="timeline-receive-bill">
|
||||
<i class="fa fa-envelope bg-orange"></i>
|
||||
|
||||
<div class="timeline-body">
|
||||
@if ($bill->status->code == 'draft')
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.receive.draft') }}
|
||||
<div class="timeline-item">
|
||||
@stack('timeline_body_receive_bill_head_start')
|
||||
<h3 class="timeline-header">{{ trans('bills.receive_bill') }}</h3>
|
||||
@stack('timeline_body_receive_bill_head_end')
|
||||
|
||||
@permission('update-expenses-bills')
|
||||
<a href="{{ url('expenses/bills/' . $bill->id . '/received') }}" class="btn btn-warning btn-xs">{{ trans('bills.mark_received') }}</a>
|
||||
@endpermission
|
||||
@else
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.receive.received', ['date' => Date::parse($bill->created_at)->format($date_format)]) }}
|
||||
@endif
|
||||
</div>
|
||||
@stack('timeline_body_receive_bill_body_start')
|
||||
<div class="timeline-body">
|
||||
@if ($bill->status->code == 'draft')
|
||||
@stack('timeline_body_receive_bill_body_message_start')
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.receive.draft') }}
|
||||
@stack('timeline_body_receive_bill_body_message_end')
|
||||
|
||||
@stack('timeline_body_receive_bill_body_button_sent_start')
|
||||
@permission('update-expenses-bills')
|
||||
<a href="{{ url('expenses/bills/' . $bill->id . '/received') }}" class="btn btn-warning btn-xs">{{ trans('bills.mark_received') }}</a>
|
||||
@endpermission
|
||||
@stack('timeline_body_receive_bill_body_button_sent_end')
|
||||
@else
|
||||
@stack('timeline_body_receive_bill_body_message_start')
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.receive.received', ['date' => Date::parse($bill->created_at)->format($date_format)]) }}
|
||||
@stack('timeline_body_receive_bill_body_message_end')
|
||||
@endif
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-money bg-green"></i>
|
||||
@stack('timeline_body_receive_bill_body_end')
|
||||
</div>
|
||||
</li>
|
||||
@stack('timeline_body_receive_bill_end')
|
||||
|
||||
<div class="timeline-item">
|
||||
<h3 class="timeline-header">{{ trans('bills.make_payment') }}</h3>
|
||||
@stack('timeline_body_make_payment_start')
|
||||
<li id="timeline-make-payment">
|
||||
<i class="fa fa-money bg-green"></i>
|
||||
|
||||
<div class="timeline-body">
|
||||
@if($bill->status->code != 'paid' && empty($bill->payments()->count()))
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.paid.await') }}
|
||||
@else
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('general.partially_paid') }}
|
||||
@endif
|
||||
<div class="timeline-item">
|
||||
@stack('timeline_body_make_payment_head_start')
|
||||
<h3 class="timeline-header">{{ trans('bills.make_payment') }}</h3>
|
||||
@stack('timeline_body_make_payment_head_end')
|
||||
|
||||
@if(empty($bill->payments()->count()) || (!empty($bill->payments()->count()) && $bill->paid != $bill->amount))
|
||||
<a href="#" id="button-payment" class="btn btn-success btn-xs">{{ trans('bills.add_payment') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
@stack('timeline_body_make_payment_body_start')
|
||||
<div class="timeline-body">
|
||||
@stack('timeline_body_get_paid_body_message_start')
|
||||
@if($bill->status->code != 'paid' && empty($bill->payments()->count()))
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.paid.await') }}
|
||||
@else
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('general.partially_paid') }}
|
||||
@endif
|
||||
@stack('timeline_body_make_payment_body_message_end')
|
||||
|
||||
|
||||
@stack('timeline_body_make_payment_body_button_payment_start')
|
||||
@if(empty($bill->payments()->count()) || (!empty($bill->payments()->count()) && $bill->paid != $bill->amount))
|
||||
<a href="#" id="button-payment" class="btn btn-success btn-xs">{{ trans('bills.add_payment') }}</a>
|
||||
@endif
|
||||
@stack('timeline_body_make_payment_body_button_payment_end')
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@stack('timeline_body_make_payment_body_end')
|
||||
</div>
|
||||
</li>
|
||||
@stack('timeline_body_make_payment_end')
|
||||
</ul>
|
||||
</div>
|
||||
@stack('timeline_body_end')
|
||||
</div>
|
||||
@endif
|
||||
@stack('timeline_end')
|
||||
|
||||
@stack('bill_start')
|
||||
<div class="box box-success">
|
||||
<div class="bill">
|
||||
<section class="bill">
|
||||
@stack('bill_badge_start')
|
||||
<div id="badge">
|
||||
<div class="arrow-up"></div>
|
||||
<div class="label {{ $bill->status->label }}">{{ trans('bills.status.' . $bill->status->code) }}</div>
|
||||
<div class="arrow-right"></div>
|
||||
</div>
|
||||
@stack('bill_badge_end')
|
||||
|
||||
@stack('bill_header_start')
|
||||
<div class="row invoice-header">
|
||||
<div class="col-xs-7">
|
||||
@if (isset($bill->vendor->logo) && !empty($bill->vendor->logo->id))
|
||||
@ -99,22 +152,25 @@
|
||||
<img src="{{ asset('public/img/company.png') }}" class="invoice-logo" />
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5 invoice-company">
|
||||
<address>
|
||||
<strong>{{ setting('general.company_name') }}</strong><br>
|
||||
{!! nl2br(setting('general.company_address')) !!}<br>
|
||||
@if (setting('general.company_tax_number'))
|
||||
{{ trans('general.tax_number') }}: {{ setting('general.company_tax_number') }}<br>
|
||||
{{ trans('general.tax_number') }}: {{ setting('general.company_tax_number') }}<br>
|
||||
@endif
|
||||
<br>
|
||||
@if (setting('general.company_phone'))
|
||||
{{ setting('general.company_phone') }}<br>
|
||||
{{ setting('general.company_phone') }}<br>
|
||||
@endif
|
||||
{{ setting('general.company_email') }}
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
@stack('bill_header_end')
|
||||
|
||||
@stack('bill_information_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-7">
|
||||
{{ trans('bills.bill_from') }}
|
||||
@ -122,9 +178,11 @@
|
||||
@stack('name_input_start')
|
||||
<strong>{{ $bill->vendor_name }}</strong><br>
|
||||
@stack('name_input_end')
|
||||
|
||||
@stack('address_input_start')
|
||||
{!! nl2br($bill->vendor_address) !!}<br>
|
||||
@stack('address_input_end')
|
||||
|
||||
@stack('tax_number_input_start')
|
||||
@if ($bill->vendor_tax_number)
|
||||
{{ trans('general.tax_number') }}: {{ $bill->vendor_tax_number }}<br>
|
||||
@ -136,11 +194,13 @@
|
||||
{{ $bill->vendor_phone }}<br>
|
||||
@endif
|
||||
@stack('phone_input_end')
|
||||
|
||||
@stack('email_start')
|
||||
{{ $bill->vendor_email }}
|
||||
@stack('email_input_end')
|
||||
</address>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5">
|
||||
<div class="table-responsive">
|
||||
<table class="table no-border">
|
||||
@ -151,6 +211,7 @@
|
||||
<td class="text-right">{{ $bill->bill_number }}</td>
|
||||
</tr>
|
||||
@stack('bill_number_input_end')
|
||||
|
||||
@stack('order_number_input_start')
|
||||
@if ($bill->order_number)
|
||||
<tr>
|
||||
@ -159,12 +220,14 @@
|
||||
</tr>
|
||||
@endif
|
||||
@stack('order_number_input_end')
|
||||
|
||||
@stack('billed_at_input_start')
|
||||
<tr>
|
||||
<th>{{ trans('bills.bill_date') }}:</th>
|
||||
<td class="text-right">{{ Date::parse($bill->billed_at)->format($date_format) }}</td>
|
||||
</tr>
|
||||
@stack('billed_at_input_end')
|
||||
|
||||
@stack('due_at_input_start')
|
||||
<tr>
|
||||
<th>{{ trans('bills.payment_due') }}:</th>
|
||||
@ -176,7 +239,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('bill_information_end')
|
||||
|
||||
@stack('bill_item_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-12 table-responsive">
|
||||
<table class="table table-striped">
|
||||
@ -184,17 +249,22 @@
|
||||
<tr>
|
||||
@stack('actions_th_start')
|
||||
@stack('actions_th_end')
|
||||
|
||||
@stack('name_th_start')
|
||||
<th>{{ trans_choice('general.items', 1) }}</th>
|
||||
@stack('name_th_end')
|
||||
|
||||
@stack('quantity_th_start')
|
||||
<th class="text-center">{{ trans('bills.quantity') }}</th>
|
||||
@stack('quantity_th_end')
|
||||
|
||||
@stack('price_th_start')
|
||||
<th class="text-right">{{ trans('bills.price') }}</th>
|
||||
@stack('price_th_end')
|
||||
|
||||
@stack('taxes_th_start')
|
||||
@stack('taxes_th_end')
|
||||
|
||||
@stack('total_th_start')
|
||||
<th class="text-right">{{ trans('bills.total') }}</th>
|
||||
@stack('total_th_end')
|
||||
@ -203,6 +273,7 @@
|
||||
<tr>
|
||||
@stack('actions_td_start')
|
||||
@stack('actions_td_end')
|
||||
|
||||
@stack('name_td_start')
|
||||
<td>
|
||||
{{ $item->name }}
|
||||
@ -211,14 +282,18 @@
|
||||
@endif
|
||||
</td>
|
||||
@stack('name_td_end')
|
||||
|
||||
@stack('quantity_td_start')
|
||||
<td class="text-center">{{ $item->quantity }}</td>
|
||||
@stack('quantity_td_end')
|
||||
|
||||
@stack('price_td_start')
|
||||
<td class="text-right">@money($item->price, $bill->currency_code, true)</td>
|
||||
@stack('price_td_end')
|
||||
|
||||
@stack('taxes_td_start')
|
||||
@stack('taxes_td_end')
|
||||
|
||||
@stack('total_td_start')
|
||||
<td class="text-right">@money($item->total, $bill->currency_code, true)</td>
|
||||
@stack('total_td_end')
|
||||
@ -228,7 +303,9 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@stack('bill_item_end')
|
||||
|
||||
@stack('bill_total_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-7">
|
||||
@stack('notes_input_start')
|
||||
@ -241,6 +318,7 @@
|
||||
@endif
|
||||
@stack('notes_input_end')
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
@ -273,24 +351,33 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('bill_total_end')
|
||||
|
||||
@stack('box_footer_start')
|
||||
<div class="box-footer row no-print">
|
||||
<div class="col-xs-12">
|
||||
<div class="col-md-12">
|
||||
@stack('button_edit_start')
|
||||
@if(!$bill->reconciled)
|
||||
<a href="{{ url('expenses/bills/' . $bill->id . '/edit') }}" class="btn btn-default">
|
||||
<i class="fa fa-pencil-square-o"></i> {{ trans('general.edit') }}
|
||||
</a>
|
||||
@endif
|
||||
@stack('button_edit_end')
|
||||
@stack('button_print_start')
|
||||
<a href="{{ url('expenses/bills/' . $bill->id . '/print') }}" target="_blank" class="btn btn-success">
|
||||
<i class="fa fa-print"></i> {{ trans('general.print') }}
|
||||
</a>
|
||||
@stack('button_print_end')
|
||||
@stack('button_group_start')
|
||||
<div class="btn-group dropup">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-chevron-circle-up"></i> {{ trans('general.more_actions') }}</button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
@stack('button_pay_start')
|
||||
@if($bill->status->code != 'paid')
|
||||
@if(empty($bill->paid) || ($bill->paid != $bill->amount))
|
||||
<li><a href="#" id="button-payment">{{ trans('bills.add_payment') }}</a></li>
|
||||
@endif
|
||||
|
||||
@permission('update-expenses-bills')
|
||||
@if($bill->bill_status_code == 'draft')
|
||||
<li><a href="{{ url('expenses/bills/' . $bill->id . '/received') }}">{{ trans('bills.mark_received') }}</a></li>
|
||||
@ -298,17 +385,27 @@
|
||||
<li><a href="javascript:void(0);" class="disabled"><span class="text-disabled">{{ trans('bills.mark_received') }}</span></a></li>
|
||||
@endif
|
||||
@endpermission
|
||||
|
||||
<li class="divider"></li>
|
||||
@endif
|
||||
@stack('button_pay_end')
|
||||
|
||||
@stack('button_pdf_start')
|
||||
<li><a href="{{ url('expenses/bills/' . $bill->id . '/pdf') }}">{{ trans('bills.download_pdf') }}</a></li>
|
||||
@stack('button_pdf_end')
|
||||
|
||||
@stack('button_delete_start')
|
||||
@permission('delete-expenses-bills')
|
||||
@if(!$bill->reconciled)
|
||||
<li class="divider"></li>
|
||||
|
||||
<li>{!! Form::deleteLink($bill, 'expenses/bills') !!}</li>
|
||||
@endif
|
||||
@endpermission
|
||||
@stack('button_delete_end')
|
||||
</ul>
|
||||
</div>
|
||||
@stack('button_group_end')
|
||||
|
||||
@if($bill->attachment)
|
||||
@php $file = $bill->attachment; @endphp
|
||||
@ -316,10 +413,14 @@
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('box_footer_end')
|
||||
</section>
|
||||
</div>
|
||||
@stack('invoice_end')
|
||||
|
||||
@stack('row_footer_start')
|
||||
<div class="row">
|
||||
@stack('row_footer_history_start')
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="box box-default collapsed-box">
|
||||
<div class="box-header with-border">
|
||||
@ -334,11 +435,11 @@
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('general.date') }}</th>
|
||||
<th>{{ trans_choice('general.statuses', 1) }}</th>
|
||||
<th>{{ trans('general.description') }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ trans('general.date') }}</th>
|
||||
<th>{{ trans_choice('general.statuses', 1) }}</th>
|
||||
<th>{{ trans('general.description') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($bill->histories as $history)
|
||||
@ -354,7 +455,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('row_footer_history_end')
|
||||
|
||||
@stack('row_footer_payment_start')
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="box box-default collapsed-box">
|
||||
<div class="box-header with-border">
|
||||
@ -369,12 +472,12 @@
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('general.date') }}</th>
|
||||
<th>{{ trans('general.amount') }}</th>
|
||||
<th>{{ trans_choice('general.accounts', 1) }}</th>
|
||||
<th style="width: 15%;">{{ trans('general.actions') }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ trans('general.date') }}</th>
|
||||
<th>{{ trans('general.amount') }}</th>
|
||||
<th>{{ trans_choice('general.accounts', 1) }}</th>
|
||||
<th style="width: 15%;">{{ trans('general.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($bill->payments as $payment)
|
||||
@ -413,7 +516,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('row_footer_payment_end')
|
||||
</div>
|
||||
@stack('row_footer_end')
|
||||
@endsection
|
||||
|
||||
@push('js')
|
||||
|
@ -3,53 +3,83 @@
|
||||
@section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number)
|
||||
|
||||
@section('content')
|
||||
@stack('recurring_message_start')
|
||||
@if (($recurring = $invoice->recurring) && ($next = $recurring->next()))
|
||||
<div class="callout callout-info">
|
||||
<h4>{{ trans('recurring.recurring') }}</h4>
|
||||
<div class="callout callout-info">
|
||||
@stack('recurring_message_head_start')
|
||||
<h4>{{ trans('recurring.recurring') }}</h4>
|
||||
@stack('recurring_message_head_end')
|
||||
|
||||
<p>{{ trans('recurring.message', [
|
||||
'type' => mb_strtolower(trans_choice('general.invoices', 1)),
|
||||
'date' => $next->format($date_format)
|
||||
]) }}
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($invoice->status->code == 'draft')
|
||||
<div class="callout callout-warning">
|
||||
<p>{!! trans('invoices.messages.draft') !!}</p>
|
||||
@stack('recurring_message_body_start')
|
||||
<p>{{ trans('recurring.message', [
|
||||
'type' => mb_strtolower(trans_choice('general.invoices', 1)),
|
||||
'date' => $next->format($date_format)
|
||||
]) }}
|
||||
</p>
|
||||
@stack('recurring_message_body_end')
|
||||
</div>
|
||||
@endif
|
||||
@stack('recurring_message_end')
|
||||
|
||||
@stack('status_message_start')
|
||||
@if ($invoice->status->code == 'draft')
|
||||
<div class="callout callout-warning">
|
||||
@stack('status_message_body_start')
|
||||
<p>{!! trans('invoices.messages.draft') !!}</p>
|
||||
@stack('status_message_body_end')
|
||||
</div>
|
||||
@endif
|
||||
@stack('status_message_end')
|
||||
|
||||
@stack('timeline_start')
|
||||
@if ($invoice->status->code != 'paid')
|
||||
<div class="row show-invoice">
|
||||
@stack('timeline_body_start')
|
||||
<div class="col-md-12 no-padding-right">
|
||||
<ul class="timeline">
|
||||
<li>
|
||||
@stack('timeline_body_create_invoice_start')
|
||||
<li id="timeline-create-invoice">
|
||||
<i class="fa fa-plus bg-blue"></i>
|
||||
|
||||
<div class="timeline-item">
|
||||
@stack('timeline_body_create_invoice_head_start')
|
||||
<h3 class="timeline-header">{{ trans('invoices.create_invoice') }}</h3>
|
||||
@stack('timeline_body_create_invoice_head_end')
|
||||
|
||||
@stack('timeline_body_create_invoice_body_start')
|
||||
<div class="timeline-body">
|
||||
@stack('timeline_body_create_invoice_body_message_start')
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('invoices.messages.status.created', ['date' => Date::parse($invoice->created_at)->format($date_format)]) }}
|
||||
@stack('timeline_body_create_invoice_body_message_end')
|
||||
|
||||
@stack('timeline_body_create_invoice_body_button_edit_start')
|
||||
<a href="{{ url('incomes/invoices/' . $invoice->id . '/edit') }}" class="btn btn-default btn-xs">
|
||||
{{ trans('general.edit') }}
|
||||
</a>
|
||||
@stack('timeline_body_create_invoice_body_button_edit_end')
|
||||
</div>
|
||||
@stack('timeline_body_create_invoice_body_end')
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@stack('timeline_body_create_invoice_end')
|
||||
|
||||
@stack('timeline_body_send_invoice_start')
|
||||
<li id="timeline-send-invoice">
|
||||
<i class="fa fa-envelope bg-orange"></i>
|
||||
|
||||
<div class="timeline-item">
|
||||
@stack('timeline_body_send_invoice_head_start')
|
||||
<h3 class="timeline-header">{{ trans('invoices.send_invoice') }}</h3>
|
||||
@stack('timeline_body_send_invoice_head_end')
|
||||
|
||||
@stack('timeline_body_send_invoice_body_start')
|
||||
<div class="timeline-body">
|
||||
@if ($invoice->status->code != 'sent' && $invoice->status->code != 'partial')
|
||||
@stack('timeline_body_send_invoice_body_message_start')
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('invoices.messages.status.send.draft') }}
|
||||
@stack('timeline_body_send_invoice_body_message_end')
|
||||
|
||||
@stack('timeline_body_send_invoice_body_button_sent_start')
|
||||
@permission('update-incomes-invoices')
|
||||
@if($invoice->invoice_status_code == 'draft')
|
||||
<a href="{{ url('incomes/invoices/' . $invoice->id . '/sent') }}" class="btn btn-default btn-xs">{{ trans('invoices.mark_sent') }}</a>
|
||||
@ -57,6 +87,9 @@
|
||||
<a href="javascript:void(0);" class="disabled btn btn-default btn-xs"><span class="text-disabled"> {{ trans('invoices.mark_sent') }}</span></a>
|
||||
@endif
|
||||
@endpermission
|
||||
@stack('timeline_body_send_invoice_body_button_sent_end')
|
||||
|
||||
@stack('timeline_body_send_invoice_body_button_email_start')
|
||||
@if($invoice->customer_email)
|
||||
<a href="{{ url('incomes/invoices/' . $invoice->id . '/email') }}" class="btn btn-warning btn-xs">{{ trans('invoices.send_mail') }}</a>
|
||||
@else
|
||||
@ -64,47 +97,72 @@
|
||||
<span class="text-disabled">{{ trans('invoices.send_mail') }}</span>
|
||||
</a>
|
||||
@endif
|
||||
@stack('timeline_body_send_invoice_body_button_email_end')
|
||||
@else
|
||||
@stack('timeline_body_send_invoice_body_message_start')
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('invoices.messages.status.send.sent', ['date' => Date::parse($invoice->created_at)->format($date_format)]) }}
|
||||
@stack('timeline_body_send_invoice_body_message_end')
|
||||
@endif
|
||||
</div>
|
||||
@stack('timeline_body_send_invoice_body_end')
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@stack('timeline_body_send_invoice_end')
|
||||
|
||||
@stack('timeline_body_get_paid_start')
|
||||
<li id="timeline-get-paid">
|
||||
<i class="fa fa-money bg-green"></i>
|
||||
|
||||
<div class="timeline-item">
|
||||
@stack('timeline_body_get_paid_head_start')
|
||||
<h3 class="timeline-header">{{ trans('invoices.get_paid') }}</h3>
|
||||
@stack('timeline_body_get_paid_head_end')
|
||||
|
||||
@stack('timeline_body_get_paid_body_start')
|
||||
<div class="timeline-body">
|
||||
@stack('timeline_body_get_paid_body_message_start')
|
||||
@if($invoice->status->code != 'paid' && empty($invoice->payments()->count()))
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('invoices.messages.status.paid.await') }}
|
||||
@else
|
||||
{{ trans_choice('general.statuses', 1) . ': ' . trans('general.partially_paid') }}
|
||||
@endif
|
||||
@stack('timeline_body_get_paid_body_message_end')
|
||||
|
||||
@stack('timeline_body_get_paid_body_button_pay_start')
|
||||
@permission('update-incomes-invoices')
|
||||
<a href="{{ url('incomes/invoices/' . $invoice->id . '/pay') }}" class="btn btn-default btn-xs">{{ trans('invoices.mark_paid') }}</a>
|
||||
@endpermission
|
||||
@stack('timeline_body_get_paid_body_button_pay_end')
|
||||
|
||||
@stack('timeline_body_get_paid_body_button_payment_start')
|
||||
@if(empty($invoice->payments()->count()) || (!empty($invoice->payments()->count()) && $invoice->paid != $invoice->amount))
|
||||
<a href="#" id="button-payment" class="btn btn-success btn-xs">{{ trans('invoices.add_payment') }}</a>
|
||||
@endif
|
||||
@stack('timeline_body_get_paid_body_button_payment_end')
|
||||
</div>
|
||||
@stack('timeline_body_get_paid_body_end')
|
||||
</div>
|
||||
</li>
|
||||
@stack('timeline_body_get_paid_end')
|
||||
</ul>
|
||||
</div>
|
||||
@stack('timeline_body_end')
|
||||
</div>
|
||||
@endif
|
||||
@stack('timeline_end')
|
||||
|
||||
@stack('invoice_start')
|
||||
<div class="box box-success">
|
||||
<section class="invoice">
|
||||
@stack('invoice_badge_start')
|
||||
<div id="badge">
|
||||
<div class="arrow-up"></div>
|
||||
<div class="label {{ $invoice->status->label }}">{{ trans('invoices.status.' . $invoice->status->code) }}</div>
|
||||
<div class="arrow-right"></div>
|
||||
</div>
|
||||
@stack('invoice_badge_end')
|
||||
|
||||
@stack('invoice_header_start')
|
||||
<div class="row invoice-header">
|
||||
<div class="col-xs-7">
|
||||
@if (setting('general.invoice_logo'))
|
||||
@ -115,6 +173,7 @@
|
||||
<img src="{{ asset('public/img/company.png') }}" class="invoice-logo" />
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5 invoice-company">
|
||||
<address>
|
||||
<strong>{{ setting('general.company_name') }}</strong><br>
|
||||
@ -130,7 +189,9 @@
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
@stack('invoice_header_end')
|
||||
|
||||
@stack('invoice_information_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-7">
|
||||
{{ trans('invoices.bill_to') }}
|
||||
@ -138,9 +199,11 @@
|
||||
@stack('name_input_start')
|
||||
<strong>{{ $invoice->customer_name }}</strong><br>
|
||||
@stack('name_input_end')
|
||||
|
||||
@stack('address_input_start')
|
||||
{!! nl2br($invoice->customer_address) !!}<br>
|
||||
@stack('address_input_end')
|
||||
|
||||
@stack('tax_number_input_start')
|
||||
@if ($invoice->customer_tax_number)
|
||||
{{ trans('general.tax_number') }}: {{ $invoice->customer_tax_number }}<br>
|
||||
@ -152,11 +215,13 @@
|
||||
{{ $invoice->customer_phone }}<br>
|
||||
@endif
|
||||
@stack('phone_input_end')
|
||||
|
||||
@stack('email_start')
|
||||
{{ $invoice->customer_email }}
|
||||
@stack('email_input_end')
|
||||
</address>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5">
|
||||
<div class="table-responsive">
|
||||
<table class="table no-border">
|
||||
@ -167,6 +232,7 @@
|
||||
<td class="text-right">{{ $invoice->invoice_number }}</td>
|
||||
</tr>
|
||||
@stack('invoice_number_input_end')
|
||||
|
||||
@stack('order_number_input_start')
|
||||
@if ($invoice->order_number)
|
||||
<tr>
|
||||
@ -175,12 +241,14 @@
|
||||
</tr>
|
||||
@endif
|
||||
@stack('order_number_input_end')
|
||||
|
||||
@stack('invoiced_at_input_start')
|
||||
<tr>
|
||||
<th>{{ trans('invoices.invoice_date') }}:</th>
|
||||
<td class="text-right">{{ Date::parse($invoice->invoiced_at)->format($date_format) }}</td>
|
||||
</tr>
|
||||
@stack('invoiced_at_input_end')
|
||||
|
||||
@stack('due_at_input_start')
|
||||
<tr>
|
||||
<th>{{ trans('invoices.payment_due') }}:</th>
|
||||
@ -192,7 +260,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('invoice_information_end')
|
||||
|
||||
@stack('invoice_item_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-12 table-responsive">
|
||||
<table class="table table-striped">
|
||||
@ -200,17 +270,22 @@
|
||||
<tr>
|
||||
@stack('actions_th_start')
|
||||
@stack('actions_th_end')
|
||||
|
||||
@stack('name_th_start')
|
||||
<th>{{ trans_choice($text_override['items'], 2) }}</th>
|
||||
@stack('name_th_end')
|
||||
|
||||
@stack('quantity_th_start')
|
||||
<th class="text-center">{{ trans($text_override['quantity']) }}</th>
|
||||
@stack('quantity_th_end')
|
||||
|
||||
@stack('price_th_start')
|
||||
<th class="text-right">{{ trans($text_override['price']) }}</th>
|
||||
@stack('price_th_end')
|
||||
|
||||
@stack('taxes_th_start')
|
||||
@stack('taxes_th_end')
|
||||
|
||||
@stack('total_th_start')
|
||||
<th class="text-right">{{ trans('invoices.total') }}</th>
|
||||
@stack('total_th_end')
|
||||
@ -219,6 +294,7 @@
|
||||
<tr>
|
||||
@stack('actions_td_start')
|
||||
@stack('actions_td_end')
|
||||
|
||||
@stack('name_td_start')
|
||||
<td>
|
||||
{{ $item->name }}
|
||||
@ -227,14 +303,18 @@
|
||||
@endif
|
||||
</td>
|
||||
@stack('name_td_end')
|
||||
|
||||
@stack('quantity_td_start')
|
||||
<td class="text-center">{{ $item->quantity }}</td>
|
||||
@stack('quantity_td_end')
|
||||
|
||||
@stack('price_td_start')
|
||||
<td class="text-right">@money($item->price, $invoice->currency_code, true)</td>
|
||||
@stack('price_td_end')
|
||||
|
||||
@stack('taxes_td_start')
|
||||
@stack('taxes_td_end')
|
||||
|
||||
@stack('total_td_start')
|
||||
<td class="text-right">@money($item->total, $invoice->currency_code, true)</td>
|
||||
@stack('total_td_end')
|
||||
@ -244,7 +324,9 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@stack('invoice_item_end')
|
||||
|
||||
@stack('invoice_total_start')
|
||||
<div class="row">
|
||||
<div class="col-xs-7">
|
||||
@stack('notes_input_start')
|
||||
@ -257,6 +339,7 @@
|
||||
@endif
|
||||
@stack('notes_input_end')
|
||||
</div>
|
||||
|
||||
<div class="col-xs-5">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
@ -289,32 +372,50 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('invoice_total_end')
|
||||
|
||||
@stack('box_footer_start')
|
||||
<div class="box-footer row no-print">
|
||||
<div class="col-md-12">
|
||||
@stack('button_edit_start')
|
||||
@if(!$invoice->reconciled)
|
||||
<a href="{{ url('incomes/invoices/' . $invoice->id . '/edit') }}" class="btn btn-default">
|
||||
<i class="fa fa-pencil-square-o"></i> {{ trans('general.edit') }}
|
||||
</a>
|
||||
@endif
|
||||
@stack('button_edit_end')
|
||||
|
||||
@stack('button_print_start')
|
||||
<a href="{{ url('incomes/invoices/' . $invoice->id . '/print') }}" target="_blank" class="btn btn-success">
|
||||
<i class="fa fa-print"></i> {{ trans('general.print') }}
|
||||
</a>
|
||||
@stack('button_print_end')
|
||||
|
||||
@stack('button_share_start')
|
||||
<a href="{{ $customer_share }}" target="_blank" class="btn btn-primary">
|
||||
<i class="fa fa-share"></i> Share
|
||||
</a>
|
||||
@stack('button_share_end')
|
||||
|
||||
@stack('button_group_start')
|
||||
<div class="btn-group dropup">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-chevron-circle-up"></i> {{ trans('general.more_actions') }}</button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
@stack('button_pay_start')
|
||||
@if($invoice->status->code != 'paid')
|
||||
@permission('update-incomes-invoices')
|
||||
<li><a href="{{ url('incomes/invoices/' . $invoice->id . '/pay') }}">{{ trans('invoices.mark_paid') }}</a></li>
|
||||
@endpermission
|
||||
|
||||
@if(empty($invoice->paid) || ($invoice->paid != $invoice->amount))
|
||||
<li><a href="#" id="button-payment">{{ trans('invoices.add_payment') }}</a></li>
|
||||
@endif
|
||||
|
||||
<li class="divider"></li>
|
||||
@endif
|
||||
@stack('button_pay_end')
|
||||
|
||||
@stack('button_sent_start')
|
||||
@permission('update-incomes-invoices')
|
||||
@if($invoice->invoice_status_code == 'draft')
|
||||
<li><a href="{{ url('incomes/invoices/' . $invoice->id . '/sent') }}">{{ trans('invoices.mark_sent') }}</a></li>
|
||||
@ -322,21 +423,34 @@
|
||||
<li><a href="javascript:void(0);" class="disabled"><span class="text-disabled">{{ trans('invoices.mark_sent') }}</span></a></li>
|
||||
@endif
|
||||
@endpermission
|
||||
@stack('button_sent_end')
|
||||
|
||||
@stack('button_email_start')
|
||||
@if($invoice->customer_email)
|
||||
<li><a href="{{ url('incomes/invoices/' . $invoice->id . '/email') }}">{{ trans('invoices.send_mail') }}</a></li>
|
||||
@else
|
||||
<li><a href="javascript:void(0);" class="green-tooltip disabled" data-toggle="tooltip" data-placement="right" title="{{ trans('invoices.messages.email_required') }}"><span class="text-disabled">{{ trans('invoices.send_mail') }}</span></a></li>
|
||||
@endif
|
||||
@stack('button_email_end')
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
@stack('button_pdf_start')
|
||||
<li><a href="{{ url('incomes/invoices/' . $invoice->id . '/pdf') }}">{{ trans('invoices.download_pdf') }}</a></li>
|
||||
@stack('button_pdf_end')
|
||||
|
||||
@stack('button_delete_start')
|
||||
@permission('delete-incomes-invoices')
|
||||
@if(!$invoice->reconciled)
|
||||
<li class="divider"></li>
|
||||
|
||||
<li>{!! Form::deleteLink($invoice, 'incomes/invoices') !!}</li>
|
||||
@endif
|
||||
@endpermission
|
||||
@stack('button_delete_end')
|
||||
</ul>
|
||||
</div>
|
||||
@stack('button_group_end')
|
||||
|
||||
@if($invoice->attachment)
|
||||
@php $file = $invoice->attachment; @endphp
|
||||
@ -344,10 +458,14 @@
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@stack('box_footer_end')
|
||||
</section>
|
||||
</div>
|
||||
@stack('invoice_end')
|
||||
|
||||
@stack('row_footer_start')
|
||||
<div class="row">
|
||||
@stack('row_footer_history_start')
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="box box-default collapsed-box">
|
||||
<div class="box-header with-border">
|
||||
@ -358,15 +476,16 @@
|
||||
</div>
|
||||
<!-- /.box-tools -->
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('general.date') }}</th>
|
||||
<th>{{ trans_choice('general.statuses', 1) }}</th>
|
||||
<th>{{ trans('general.description') }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ trans('general.date') }}</th>
|
||||
<th>{{ trans_choice('general.statuses', 1) }}</th>
|
||||
<th>{{ trans('general.description') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($invoice->histories as $history)
|
||||
@ -382,7 +501,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('row_footer_history_end')
|
||||
|
||||
@stack('row_footer_payment_start')
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="box box-default collapsed-box">
|
||||
<div class="box-header with-border">
|
||||
@ -393,16 +514,17 @@
|
||||
</div>
|
||||
<!-- /.box-tools -->
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('general.date') }}</th>
|
||||
<th>{{ trans('general.amount') }}</th>
|
||||
<th>{{ trans_choice('general.accounts', 1) }}</th>
|
||||
<th style="width: 15%;">{{ trans('general.actions') }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ trans('general.date') }}</th>
|
||||
<th>{{ trans('general.amount') }}</th>
|
||||
<th>{{ trans_choice('general.accounts', 1) }}</th>
|
||||
<th style="width: 15%;">{{ trans('general.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($invoice->payments as $payment)
|
||||
@ -441,7 +563,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stack('row_footer_payment_end')
|
||||
</div>
|
||||
@stack('row_footer_end')
|
||||
@endsection
|
||||
|
||||
@push('js')
|
||||
|
Loading…
x
Reference in New Issue
Block a user