From 142082b4470a5c2cfce6aefc01bbe3f1e08afec5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 22 May 2016 18:11:24 +0300 Subject: [PATCH] Remove download PDF from recurring invoices --- resources/views/invoices/edit.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 9deb532245..8fb079d079 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -527,8 +527,10 @@ {!! Former::select('invoice_design_id')->style('display:inline;width:150px;background-color:white !important')->raw()->fromQuery($invoiceDesigns, 'name', 'id')->data_bind("value: invoice_design_id") !!} @endif - {!! Button::primary(trans('texts.download_pdf'))->withAttributes(array('onclick' => 'onDownloadClick()'))->appendIcon(Icon::create('download-alt')) !!} - + @if ( ! $invoice->is_recurring) + {!! Button::primary(trans('texts.download_pdf'))->withAttributes(array('onclick' => 'onDownloadClick()'))->appendIcon(Icon::create('download-alt')) !!} + @endif + @if ($invoice->isClientTrashed()) @elseif ($invoice->trashed())