1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

L5 Syntax Changes

This commit is contained in:
Jeramy Simpson 2015-03-27 16:06:14 +10:00
parent 1cc88c1a76
commit 768f04e3a9
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,10 @@ use Cache;
use DB;
use Schema;
use Session;
use Request;
use View;
use App\Models\Currency;
use DateTimeZone;
class Utils
{

View File

@ -289,7 +289,7 @@
</div>
@if (!Utils::isPro() || InvoiceDesign::count() == COUNT_FREE_DESIGNS)
@if (!Utils::isPro() || \App\Models\InvoiceDesign::count() == COUNT_FREE_DESIGNS)
{!! Former::select('invoice_design_id')->style('display:inline;width:150px')->raw()->fromQuery($invoiceDesigns, 'name', 'id')->data_bind("value: invoice_design_id")->addOption(trans('texts.more_designs') . '...', '-1') !!}
@else
{!! Former::select('invoice_design_id')->style('display:inline;width:150px')->raw()->fromQuery($invoiceDesigns, 'name', 'id')->data_bind("value: invoice_design_id") !!}
@ -345,7 +345,7 @@
{!! Button::primary(trans('texts.enter_payment'))->withAttributes(array('onclick' => 'onPaymentClick()'))->appendIcon(Icon::create('usd')) !!}
@endif
@elseif ($invoice && $invoice->trashed() && !$invoice->is_deleted == '1')
{!! Button::success(trans('texts.restore'))->withAttributes(['onclick' => 'submitAction("restore")'])->appendIcon(Icon:create('cloud-download')) !!}
{!! Button::success(trans('texts.restore'))->withAttributes(['onclick' => 'submitAction("restore")'])->appendIcon(Icon::create('cloud-download')) !!}
@endif
</div>