From 768f04e3a929751e9ff0228fab5823d3c0bb9187 Mon Sep 17 00:00:00 2001 From: Jeramy Simpson Date: Fri, 27 Mar 2015 16:06:14 +1000 Subject: [PATCH] L5 Syntax Changes --- app/Libraries/Utils.php | 3 +++ resources/views/invoices/edit.blade.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Libraries/Utils.php b/app/Libraries/Utils.php index d1b2b9ba7f..c131ba9d5b 100644 --- a/app/Libraries/Utils.php +++ b/app/Libraries/Utils.php @@ -5,7 +5,10 @@ use Cache; use DB; use Schema; use Session; +use Request; +use View; use App\Models\Currency; +use DateTimeZone; class Utils { diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 78d1a7c02c..3537b641ec 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -289,7 +289,7 @@ - @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