Файл: src/resources/views/invoices/duplicate.blade.php
Строк: 254
@extends('layouts.app')
@section('breadcrumb')
<ul class="breadcrumb">
<li>
<a href="{{route('get.dashboard')}}" title="{{trans('breadcrumb.dashboard')}}">
<span class="lnr lnr-home"></span> {{trans('breadcrumb.dashboard')}}
</a>
</li>
<li>
{{trans('breadcrumb.invoices')}}
</li>
<li>
{{trans('breadcrumb.add_invoice')}}
</li>
</ul>
@stop
@section('content')
<div class="row">
<div class="col-sm-12">
<div class="panel panel-flat">
<div class="panel-heading">
<h5>{!! trans('invoices.add_panel_title') !!}</strong></h5>
</div>
<div class="panel-body">
{{Form::model($Invoice,['class'=>'form-horizontal','route'=>'invoices::post.add'])}}
<fieldset class="content-group">
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('invoices.label_billing_to')}}
</label>
<div class="col-lg-4">
{{Form::select('CompanyID',$BillingFrom,null,['placeholder'=>'Select Company','class'=>'form-control select2'])}}
@if($errors->has('Address1'))
<small>{{$errors->first('Address1')}}</small>
@endif
</div>
<label class="control-label col-lg-2">
{{trans('invoices.label_reference_id')}}
</label>
<div class="col-lg-4">
<div class="input-group my-group">
<div class="input-group">
{{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>
@if($errors->has('ReferenceID'))
<small>{{$errors->first('ReferenceID')}}</small>
@endif
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-lg-2">
{{trans('invoices.label_discount')}}
</label>
<div class="col-xs-6 col-lg-4">
<div class="input-group my-group">
<div class="input-group">
@if($Invoice->DiscountMethod==0)
{{Form::text('Discount',null,['class'=>'form-control'])}}
@else
{{Form::text('DiscountWage',null,['class'=>'form-control'])}}
@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>
{{Form::radio('DiscountMethod',0,true,['class'=>'discount_type','placeholder'=>'Amount of Discount'])}}
<ul class="dropdown-menu">
<li><a href="#" class="discount-type">%</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="discount-type">{{$Settings->currency->Name}}</a></li>
</ul>
</span>
</div>
</div>
@if($errors->has('DiscountWage'))
<small>{{$errors->first('DiscountWage')}}</small>
@endif
@if($errors->has('Discount'))
<small>{{$errors->first('Discount')}}</small>
@endif
</div>
<label class="control-label col-lg-2">
{{trans('invoices.label_tax')}}
</label>
<div class="col-lg-4">
<div class="input-group">
{{Form::text('Tax',null,['placeholder'=>'Tax Rate (%)','class'=>'form-control tax_percentage'])}}
<span class="input-group-addon">%</span>
</div>
@if($errors->has('Tax'))
<small>{{$errors->first('Tax')}}</small>
@endif
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('invoices.label_due_date')}}
</label>
<div class="col-lg-4">
<div class="inner-addon left-addon">
<i class="lnr lnr-calendar-full"></i>
{{Form::text('DueDate',null,['class'=>'form-control datepicker'])}}
</div>
@if($errors->has('DueDate'))
<small>{{$errors->first('DueDate')}}</small>
@endif
</div>
<label for="year" class="control-label col-lg-2">{{trans('invoices.label_send_email')}}</label>
<div class="btn-group col-lg-4" data-toggle="buttons">
<label class="btn btn-default">
{{Form::radio('CustomerNotification',1)}}
{{trans('invoices.label_email_yes')}}
</label>
<label class="btn btn-default active">
{{Form::radio('CustomerNotification',0,true)}}
{{trans('invoices.label_email_no')}}
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('invoices.label_status')}}
</label>
<div class="col-lg-4">
{{Form::select('Status',['Paid'=>'Paid','Partially Paid'=>'Partially Paid','Closed'=>'Closed','Invalid'=>'Invalid','On Hold'=>'On Hold','Pending'=>'Pending'],'Pending',['class'=>'form-control'])}}
@if($errors->has('Status'))
<small>{{$errors->first('Status')}}</small>
@endif
</div>
</div>
<table class="table table-striped items">
<thead>
<tr>
<th>#</th>
<th>{{trans('invoices.label_product')}}</th>
<th width="10%">{{trans('invoices.label_price')}}</th>
<th width="5%">{{trans('invoices.label_amount')}}</th>
<th width="7%">{{trans('invoices.label_discount')}}</th>
<th width="7%">{{trans('invoices.label_tax')}}</th>
</tr>
</thead>
<tbody>
<?php foreach($Invoice->Items as $Key=>$Items): ?>
<tr>
<td class="lastid">{{$Key+1}}</td>
<td>
{{Form::select('Product['.$Key.'][ProductID]',$Products,$Items->ProductID,['placeholder'=>'Please select product','class'=>'form-control'])}}
</td>
<td>
{{Form::text('Product['.$Key.'][ProductPrice]',$Items->Price,['class'=>'form-control productprice','id'=>'Price-0'])}}
</td>
<td>
{{Form::text('Product['.$Key.'][ProductAmount]',$Items->Amount,['class'=>'form-control productamount','id'=>'Amount-0'])}}
</td>
<td>
{{Form::text('Product['.$Key.'][ProductDiscount]',$Items->Discount,['class'=>'form-control productdiscount','data-order'=>"0",'id'=>'Discount-0'])}}
</td>
<td>
{{Form::text('Product['.$Key.'][ProductTax]',$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>
{{trans('invoices.label_add_new_row')}}
</button>
</div>
<div class="col-sm-5 pull-right">
<div class="content-group">
<h6>{{trans('invoices.label_total_due')}}</h6>
<div class="table-responsive no-border">
<table class="table">
<tbody>
<tr>
<th>{{trans('invoices.label_subtotal')}}:</th>
<td class="text-right">€ <span class="sub_total">0.00</span></td>
</tr>
<tr>
<th>{{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>{{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">
{{trans('invoices.footer_message')}}
</label>
<div class="col-lg-10">
{{Form::textarea('ZipCode',null,['placeholder'=>'Footer description note.','class'=>'form-control'])}}
@if($errors->has('ZipCode'))
<small>{{$errors->first('ZipCode')}}</small>
@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>
{{trans('invoices.create_invoice')}}
</button>
</div>
{{Form::close()}}
</div>
</div>
</div>
</div>
@stop