Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/public_html/storage-old/framework/views/ |
<?php $__env->startSection('title'); ?>
<?php if(isset($obj)): ?>
<?php echo e(trans("invoices::invoices.edit_title")); ?>
<?php else: ?>
<?php echo e(trans("invoices::invoices.create_title")); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('css_page'); ?>
<link href="<?php echo e(asset('/themes/crm/assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css')); ?>" rel="stylesheet">
<link href="<?php echo e(asset('/themes/crm/assets/global/plugins/dropzone/css/dropzone.css')); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- BEGIN PAGE HEADER-->
<div class="page-bar">
<ul class="page-breadcrumb">
<li>
<i class="fa fa-home"></i>
<a href="<?php echo url('home'); ?>"><?php echo e(trans('general.breadcrumbs_home')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="<?php echo route('admin.invoices.index'); ?>"><?php echo e(trans('invoices::invoice.breadcrumbs_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="<?php echo route('admin.invoices.index'); ?>"><?php echo e(trans('invoices::invoice.page_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<?php if(isset($obj)): ?>
<a href="#"><?php echo e(trans('invoices::invoice.edit_title')); ?></a>
<?php else: ?>
<a href="#"><?php echo e(trans('invoices::invoice.create_new_title')); ?></a>
<?php endif; ?>
</li>
</ul>
</div>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
<div class="col-md-12">
<?php echo Form::model($obj, array('url' => route('admin.invoices.update',['invoices'=>$obj->id]), 'method' => 'put', 'class' => 'bf form-horizontal', 'files'=> true)); ?>
<div class="portlet">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-pencil"></i>
<?php echo e(trans('invoices::invoice.edit_title')); ?>
</div>
<div class="actions btn-set">
<a href="<?php echo e(route('admin.invoices.index')); ?>" name="back" class="btn default"><i class="fa fa-angle-left"></i> <?php echo e(trans('general.action_back')); ?></a>
<button class="btn default" type="reset"><i class="fa fa-reply"></i> <?php echo e(trans('general.action_reset')); ?></button>
<button class="btn green" name="save" value="save"><i class="fa fa-check"></i> <?php echo e(trans('general.action_save')); ?></button>
<button class="btn blue" name="save_exit" value="save_exit"><?php echo e(trans('general.action_save_exit')); ?> <i class="fa fa-arrow-circle-right"></i></button>
</div>
</div>
<!--form-->
<div class="portlet-body">
<?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<!--GENERAL-->
<div class="portlet">
<div class="portlet-body">
<div class="row">
<!--col 1-->
<div class="col-md-4">
<!--account-->
<div class="form-group <?php echo e($errors->has('company_id') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('invoices::invoice.form_account_id')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::select('account_id', $form['accounts'], null, ['class'=>'form-control select2','id'=>'account']); ?>
<span class="help-block"><?php echo e($errors->first('account_id', ':message')); ?></span>
</div>
</div>
<!--end account-->
<!--status: cancelled/active-->
<div class="form-group <?php echo e($errors->has('is_canceled') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('invoices::invoice.form_status')); ?>
</label>
<div class="col-md-9">
<?php echo Form::select('is_canceled', $form['status'], $obj->is_canceled, ['class'=>'form-control']); ?>
<span class="help-block"><?php echo e($errors->first('is_canceled', ':message')); ?></span>
</div>
</div>
<!--end status: cancelled/active-->
</div>
<!--/col 1-->
<!--col 2-->
<div class="col-md-4">
<!--date-->
<div class="form-group <?php echo e($errors->has('inv_date') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('invoices::invoice.form_date')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('inv_date', @$obj?$obj->inv_date->format('d-m-Y'):null, array('class' => 'form-control date-picker','placeholder'=>'', 'data-date-format'=>'dd-mm-yyyy','id'=>'invoice_date')); ?>
<span class="help-block"><?php echo e($errors->first('inv_date', ':message')); ?></span>
</div>
</div>
<!--end date-->
<!--duedate-->
<div class="form-group <?php echo e($errors->has('inv_duedate') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('invoices::invoice.form_invoice_duedate')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('inv_duedate', @$obj?$obj->inv_duedate->format('d-m-Y'):null, array('class' => 'form-control date-picker','placeholder'=>'','id'=>'invoice_duedate')); ?>
<span class="help-block"><?php echo e($errors->first('inv_duedate', ':message')); ?></span>
</div>
</div>
<!--end duedate-->
<!--number-->
<div class="form-group <?php echo e($errors->has('number') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('invoices::invoice.form_invoice_number')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<div class="input-group">
<?php if($obj->prefix): ?>
<span class="input-group-addon">
<?php echo e($obj->prefix); ?>
</span>
<?php endif; ?>
<?php echo Form::number('number', null, array('class' => 'form-control text-center','placeholder'=>'','id'=>'invoice_number')); ?>
</div>
<span class="help-block"><?php echo e($errors->first('number', ':message')); ?></span>
</div>
</div>
<!--end number-->
</div>
<!--/col 2-->
<!--col 3-->
<div class="col-md-4">
<!--company name-->
<div class="form-group <?php echo e($errors->has('client_name') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('invoices::invoice.form_client_name')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('client_name', trim($client['name']), ['class'=>'form-control']); ?>
<span class="help-block"><?php echo e($errors->first('client_name', ':message')); ?></span>
</div>
</div>
<!--end company name-->
<!--company address-->
<div class="form-group <?php echo e($errors->has('client_address') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('invoices::invoice.form_client_address')); ?>
</label>
<div class="col-md-9">
<?php echo Form::text('client_address', trim($client['address']), ['class'=>'form-control']); ?>
<span class="help-block"><?php echo e($errors->first('client_address', ':message')); ?></span>
</div>
</div>
<!--end company address-->
<!--company postcode-->
<div class="form-group <?php echo e($errors->has('client_postcode') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('invoices::invoice.form_client_postcode')); ?>
</label>
<div class="col-md-9">
<?php echo Form::text('client_postcode', trim($client['postcode']), ['class'=>'form-control']); ?>
<span class="help-block"><?php echo e($errors->first('client_postcode', ':message')); ?></span>
</div>
</div>
<!--end company address-->
</div>
<!--/col 3-->
</div>
</div>
</div>
<!--END GENERAL-->
<!--PRODUCTS/SERVICES-->
<div class="portlet">
<div class="portlet-body">
<?php if($errors->first('no_items',':message')): ?>
<div class="alert alert-danger" role="alert">
<?php echo e($errors->first('no_items',':message')); ?>
</div>
<?php endif; ?>
<!--new invoice item-->
<hr/>
<div class="row">
<div class="col-md-7">
<?php echo Form::text('item_id',null,['class'=>'form-control input-sm tooltips','id'=>'new_item', 'title'=>'invoice item position', 'placeholder'=>'item name']); ?>
</div>
<div class="col-md-3">
<!--tax-->
<div class="input-group">
<span class="input-group-addon">
<?php echo e(trans('invoices::invoice.form_tax_id')); ?>
</span>
<?php echo Form::select('tax_id', $form['taxes'], null, ['class'=>'form-control input-sm','id'=>'tax', 'placeholder'=>'without tax']); ?>
</div>
<span class="help-block"><?php echo e($errors->first('tax_id', ':message')); ?></span>
<!--end tax-->
</div>
<div class="col-md-1">
<button class="btn btn-sm blue tooltips" id="add_item" type="button" title="add new item">
<i class="fa fa-plus"></i> <?php echo e(trans('general.action_add')); ?>
</button>
</div>
</div>
<hr/>
<!--end new invoice item-->
<table class="table table-condensed table-hover" id="invoice_contents">
<thead>
<tr class="bg-grey-gallery">
<th class="text-center" style="font-weight: 200!important; vertical-align: middle;"><?php echo e(trans('invoices::invoice.form_col_pos')); ?></th>
<th class="col-md-2" style="font-weight: 200!important; vertical-align: middle;"><?php echo e(trans('invoices::invoice.form_col_name')); ?></th>
<th class="col-md-3" style="font-weight: 200!important; vertical-align: middle;"><?php echo e(trans('invoices::invoice.form_col_desc')); ?></th>
<th class="col-md-1 text-center" style="font-weight: 200!important; vertical-align: middle;"><?php echo e(trans('invoices::invoice.form_col_um')); ?></th>
<th class="col-md-1 text-center" style="font-weight: 200!important; vertical-align: middle;"><?php echo e(trans('invoices::invoice.form_col_qty')); ?></th>
<th class="col-md-1 text-center" style="font-weight: 200!important; vertical-align: middle;"><?php echo e(trans('invoices::invoice.form_col_price')); ?></th>
<th class="col-md-1 text-center" style="font-weight: 200!important; vertical-align: middle;"><?php echo e(trans('invoices::invoice.form_col_value')); ?>
<br/>
<sub><?php echo e(trans('invoices::invoice.form_col_wo_vat')); ?></sub>
</th>
<th class="col-md-1" style="font-weight: 200!important; vertical-align: middle;" class="col-md-1 text-center"><?php echo e(trans('invoices::invoice.form_col_vat_value')); ?></th>
<th class="col-md-1" style="font-weight: 200!important; vertical-align: middle;"></th>
</tr>
</thead>
<tbody class="tbody-sortable">
<?php echo $__env->make('invoices::admin.invoices.invoice_items', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
</tbody>
</table>
</div>
</div>
<!--END PRODUCTS/SERVICES-->
</div>
<!--/form-->
<!--actions-->
<div class="portlet-title">
<div class="actions btn-set">
<?php echo Form::hidden('instance',$obj->id); ?>
<a href="<?php echo e(route('admin.invoices.index')); ?>" name="back" class="btn default"><i class="fa fa-angle-left"></i> <?php echo e(trans('general.action_back')); ?></a>
<button class="btn default" type="reset"><i class="fa fa-reply"></i> <?php echo e(trans('general.action_reset')); ?></button>
<button class="btn green" name="save" value="save"><i class="fa fa-check"></i> <?php echo e(trans('general.action_save')); ?></button>
<button class="btn blue" name="save_exit" value="save_exit"><?php echo e(trans('general.action_save_exit')); ?> <i class="fa fa-arrow-circle-right"></i></button>
</div>
</div>
<!--/actions-->
</div>
<?php echo Form::close(); ?>
</div>
</div>
<!-- END PAGE CONTENT-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts_page'); ?>
@parent
<script>
$( ".tooltips" ).load(function() {
$(".tooltips").tooltip();
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('invoices::layouts.invoice_form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>