2019-11-16 10:21:14 +03:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title', trans_choice('general.invoices', 1))
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
{!! Form::model($setting, [
|
|
|
|
'id' => 'setting',
|
|
|
|
'method' => 'PATCH',
|
|
|
|
'route' => 'settings.update',
|
|
|
|
'@submit.prevent' => 'onSubmit',
|
|
|
|
'@keydown' => 'form.errors.clear($event.target.name)',
|
|
|
|
'files' => true,
|
|
|
|
'role' => 'form',
|
|
|
|
'class' => 'form-loading-button',
|
|
|
|
'novalidate' => true,
|
|
|
|
]) !!}
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
|
|
|
{{ Form::textGroup('number_prefix', trans('settings.invoice.prefix'), 'font', []) }}
|
|
|
|
|
|
|
|
{{ Form::textGroup('number_digit', trans('settings.invoice.digit'), 'text-width', []) }}
|
|
|
|
|
|
|
|
{{ Form::textGroup('number_next', trans('settings.invoice.next'), 'chevron-right', []) }}
|
|
|
|
|
|
|
|
{{ Form::selectGroup('payment_terms', trans('settings.invoice.payment_terms'), 'calendar', $payment_terms, $setting['payment_terms'], []) }}
|
|
|
|
|
|
|
|
{{ Form::textGroup('title', trans('settings.invoice.title'), 'font', []) }}
|
|
|
|
|
|
|
|
{{ Form::textGroup('subheading', trans('settings.invoice.subheading'), 'font', []) }}
|
|
|
|
|
|
|
|
{{ Form::textareaGroup('notes', trans_choice('general.notes', 2)) }}
|
|
|
|
|
|
|
|
{{ Form::textareaGroup('footer', trans('general.footer')) }}
|
2019-11-17 17:51:54 +03:00
|
|
|
|
|
|
|
{{ Form::invoice_text('item_name', trans('settings.invoice.item_name'), 'font', $item_names, null, [], 'item_name_input', null) }}
|
|
|
|
|
|
|
|
{{ Form::invoice_text('price_name', trans('settings.invoice.price_name'), 'font', $price_names, null, [], 'price_name_input', null) }}
|
|
|
|
|
|
|
|
{{ Form::invoice_text('quantity_name', trans('settings.invoice.quantity_name'), 'font', $quantity_names, null, [], 'quantity_name_input', null) }}
|
2019-12-25 19:09:04 +03:00
|
|
|
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
{!! Form::label('invoice_template', trans('settings.invoice.invoice_template'), ['class' => 'form-control-label']) !!}
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
<a href="#" class="btn btn-block btn-outline-primary" @click="onTemplate">
|
|
|
|
<i class="fas fa-palette"></i> {{ trans('settings.invoice.choose_template') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@permission('update-settings-settings')
|
|
|
|
<div class="card-footer">
|
|
|
|
<div class="row float-right">
|
|
|
|
{{ Form::saveButtons(URL::previous()) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endpermission
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{!! Form::hidden('_prefix', 'invoice') !!}
|
|
|
|
|
|
|
|
{!! Form::close() !!}
|
|
|
|
@endsection
|
|
|
|
|
2019-12-25 19:09:04 +03:00
|
|
|
@push('content_content_end')
|
|
|
|
<akaunting-modal
|
|
|
|
:show="template.modal"
|
|
|
|
@cancel="template.modal = false"
|
|
|
|
:title="'{{ trans('settings.invoice.choose_template') }}'"
|
|
|
|
:message="template.html"
|
|
|
|
:button_cancel="'{{ trans('general.button.save') }}'"
|
|
|
|
:button_delete="'{{ trans('general.button.cancel') }}'">
|
|
|
|
<template #modal-body>
|
|
|
|
@include('modals.settings.template')
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template #card-footer>
|
|
|
|
<div class="float-right">
|
|
|
|
<button type="button" class="btn btn-outline-secondary" @click="closeTemplate">
|
|
|
|
<span>{{ trans('general.cancel') }}</span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-success button-submit" @click="addTemplate">
|
|
|
|
<div class="aka-loader d-none"></div>
|
|
|
|
<span>{{ trans('general.confirm') }}</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</akaunting-modal>
|
|
|
|
@endpush
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
@push('scripts_start')
|
|
|
|
<script src="{{ asset('public/js/settings/settings.js?v=' . version('short')) }}"></script>
|
|
|
|
@endpush
|