From 429aba94714f2b4a3f3e297d45e9f14d723419d4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 4 Jul 2016 10:43:04 +0300 Subject: [PATCH] Remove customize save button if not pro --- resources/views/accounts/customize_design.blade.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/resources/views/accounts/customize_design.blade.php b/resources/views/accounts/customize_design.blade.php index 4a2800e94f3f..f4049aee5b56 100644 --- a/resources/views/accounts/customize_design.blade.php +++ b/resources/views/accounts/customize_design.blade.php @@ -193,16 +193,13 @@
{!! Button::normal(trans('texts.help'))->withAttributes(['onclick' => 'showHelp()'])->appendIcon(Icon::create('question-sign')) !!} {!! Button::normal(trans('texts.cancel'))->asLinkTo(URL::to('/settings/invoice_design'))->appendIcon(Icon::create('remove-circle')) !!} - {!! Button::success(trans('texts.save'))->withAttributes(['onclick' => 'submitForm()'])->appendIcon(Icon::create('floppy-disk'))->withAttributes(['class' => 'save-button']) !!} + @if (Auth::user()->hasFeature(FEATURE_CUSTOMIZE_INVOICE_DESIGN)) + {!! Button::success(trans('texts.save'))->withAttributes(['onclick' => 'submitForm()'])->appendIcon(Icon::create('floppy-disk'))->withAttributes(['class' => 'save-button']) !!} + @endif