Файл: src/storage/framework/views/8984e6ec5163b8f40ec743793e1cc11ec74dcf77.php
Строк: 265
<?php $__env->startSection('breadcrumb'); ?>
<ul class="breadcrumb">
<li>
<a href="<?php echo e(route('get.dashboard')); ?>" title="<?php echo e(trans('breadcrumb.dashboard')); ?>">
<span class="lnr lnr-home"></span> <?php echo e(trans('breadcrumb.dashboard')); ?>
</a>
</li>
<li>
<?php echo e(trans('breadcrumb.invoices')); ?>
</li>
<li>
<?php echo e(trans('breadcrumb.add_invoice')); ?>
</li>
</ul>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
<div class="col-sm-12">
<div class="panel panel-flat">
<div class="panel-heading">
<h5><?php echo trans('invoices.add_panel_title'); ?></strong></h5>
</div>
<div class="panel-body">
<?php echo e(Form::model($Invoice,['class'=>'form-horizontal'])); ?>
<fieldset class="content-group">
<div class="form-group">
<label class="control-label col-lg-2">
<?php echo e(trans('invoices.label_billing_to')); ?>
</label>
<div class="col-lg-4">
<?php echo e(Form::select('CompanyID',$BillingFrom,null,['placeholder'=>'Select Company','class'=>'form-control select2'])); ?>
<?php if($errors->has('Address1')): ?>
<small><?php echo e($errors->first('Address1')); ?></small>
<?php endif; ?>
</div>
<label class="control-label col-lg-2">
<?php echo e(trans('invoices.label_reference_id')); ?>
</label>
<div class="col-lg-4">
<div class="input-group my-group">
<div class="input-group">
<?php echo e(Form::text('ReferenceID',null,['placeholder'=>'INV-12312309','class'=>'refid form-control'])); ?>
<span class="input-group-addon type-group">
<button type="button" class="random-ref btn btn-info">
<i class="lnr lnr-sync"></i>
Random
</button>
</span>
</div>
</div>
<?php if($errors->has('ReferenceID')): ?>
<small><?php echo e($errors->first('ReferenceID')); ?></small>
<?php endif; ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-lg-2">
<?php echo e(trans('invoices.label_discount')); ?>
</label>
<div class="col-xs-6 col-lg-4">
<div class="input-group my-group">
<div class="input-group">
<?php if($Invoice->DiscountMethod==0): ?>
<?php echo e(Form::text('Discount',null,['class'=>'form-control'])); ?>
<?php else: ?>
<?php echo e(Form::text('DiscountWage',null,['class'=>'form-control'])); ?>
<?php endif; ?>
<span class="input-group-addon type-group">
<button type="button" class="btn btn-primary dropdown-toggle discount-label" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
% <span class="caret"></span>
</button>
<input type="radio" class="discount_type" value="<?php echo e($Invoice->DiscountMethod); ?>" name="DiscountType" />
<ul class="dropdown-menu">
<li><a href="#" class="discount-type">%</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="discount-type"><?php echo e($Settings->currency->Name); ?></a></li>
</ul>
</span>
</div>
</div>
<?php if($errors->has('DiscountWage')): ?>
<small><?php echo e($errors->first('DiscountWage')); ?></small>
<?php endif; ?>
<?php if($errors->has('Discount')): ?>
<small><?php echo e($errors->first('Discount')); ?></small>
<?php endif; ?>
</div>
<label class="control-label col-lg-2">
<?php echo e(trans('invoices.label_tax')); ?>
</label>
<div class="col-lg-4">
<div class="input-group">
<?php echo e(Form::text('Tax',null,['placeholder'=>'Tax Rate (%)','class'=>'form-control tax_percentage'])); ?>
<span class="input-group-addon">%</span>
</div>
<?php if($errors->has('Tax')): ?>
<small><?php echo e($errors->first('Tax')); ?></small>
<?php endif; ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
<?php echo e(trans('invoices.label_due_date')); ?>
</label>
<div class="col-lg-4">
<div class="inner-addon left-addon">
<i class="lnr lnr-calendar-full"></i>
<?php echo e(Form::text('DueDate',null,['class'=>'form-control datepicker'])); ?>
</div>
<?php if($errors->has('DueDate')): ?>
<small><?php echo e($errors->first('DueDate')); ?></small>
<?php endif; ?>
</div>
<label for="year" class="control-label col-lg-2"><?php echo e(trans('invoices.label_send_email')); ?></label>
<div class="btn-group col-lg-4" data-toggle="buttons">
<label class="btn btn-default">
<input type="radio" name="year" value="2011"><?php echo e(trans('invoices.label_email_yes')); ?>
</label>
<label class="btn btn-default">
<input type="radio" name="year" value="2013" checked=""><?php echo e(trans('invoices.label_email_no')); ?>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
<?php echo e(trans('invoices.label_status')); ?>
</label>
<div class="col-lg-4">
<?php echo e(Form::select('Status',['Paid'=>'Paid','Partially Paid'=>'Partially Paid','Closed'=>'Closed','Invalid'=>'Invalid','On Hold'=>'On Hold','Pending'=>'Pending'],'Pending',['class'=>'form-control'])); ?>
<?php if($errors->has('Status')): ?>
<small><?php echo e($errors->first('Status')); ?></small>
<?php endif; ?>
</div>
</div>
<table class="table table-striped items">
<thead>
<tr>
<th>#</th>
<th><?php echo e(trans('invoices.label_product')); ?></th>
<th width="10%"><?php echo e(trans('invoices.label_price')); ?></th>
<th width="5%"><?php echo e(trans('invoices.label_amount')); ?></th>
<th width="7%"><?php echo e(trans('invoices.label_discount')); ?></th>
<th width="7%"><?php echo e(trans('invoices.label_tax')); ?></th>
</tr>
</thead>
<tbody>
<?php foreach($Invoice->Items as $Key=>$Items): ?>
<tr>
<td class="lastid"><?php echo e($Key+1); ?></td>
<td>
<?php echo e(Form::select('ProductID['.$Key.']',$Products,$Items->ProductID,['placeholder'=>'Please select product','class'=>'form-control'])); ?>
</td>
<td>
<?php echo e(Form::text('ProductPrice['.$Key.']',$Items->Price,['class'=>'form-control productprice','id'=>'Price-0'])); ?>
</td>
<td>
<?php echo e(Form::text('ProductAmount['.$Key.']',$Items->Amount,['class'=>'form-control productamount','id'=>'Amount-0'])); ?>
</td>
<td>
<?php echo e(Form::text('ProductDiscount['.$Key.']',$Items->Discount,['class'=>'form-control productdiscount','data-order'=>"0",'id'=>'Discount-0'])); ?>
</td>
<td>
<?php echo e(Form::text('ProductTax['.$Key.']',$Items->Tax,['class'=>'form-control producttax','data-order'=>"0",'id'=>'Tax-0'])); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="form-group col-sm-7">
<button type="button" class="new-row btn btn-sm btn-success btn-addon">
<i class="lnr lnr-plus-circle"></i>
<?php echo e(trans('invoices.label_add_new_row')); ?>
</button>
</div>
<div class="col-sm-5 pull-right">
<div class="content-group">
<h6><?php echo e(trans('invoices.label_total_due')); ?></h6>
<div class="table-responsive no-border">
<table class="table">
<tbody>
<tr>
<th><?php echo e(trans('invoices.label_subtotal')); ?>:</th>
<td class="text-right">€ <span class="sub_total">0.00</span></td>
</tr>
<tr>
<th><?php echo e(trans('invoices.label_tax')); ?>: <span class="text-regular tax_percentage"></span></th>
<td class="text-right">€ <span class="tax_wage">0.00</span></td>
</tr>
<tr>
<th><?php echo e(trans('invoices.label_total')); ?>:</th>
<td class="text-right text-primary">
<h5>€ <span class="grand_total">0.00</span></h5>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="form-group">
<label class="control-label col-lg-2">
<?php echo e(trans('invoices.footer_message')); ?>
</label>
<div class="col-lg-10">
<?php echo e(Form::textarea('ZipCode',null,['placeholder'=>'Footer description note.','class'=>'form-control'])); ?>
<?php if($errors->has('ZipCode')): ?>
<small><?php echo e($errors->first('ZipCode')); ?></small>
<?php endif; ?>
</div>
</div>
</fieldset>
<div class="text-right">
<button type="submit" class="btn btn-sm btn-primary btn-addon pull-right">
<i class="lnr lnr-apartment"></i>
<?php echo e(trans('invoices.create_invoice')); ?>
</button>
</div>
<?php echo e(Form::close()); ?>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>