Ask, reply and learn. Join the community of Akaunting.
Hello,
I am trying to create a custom print template copying from the default template. However, When i put the
I am checking the controller "Sales\Invoices" and i don't see nowhere this variable is defined. However, if i activate the default template it works and if i activate my custom it doesn't.
Follow my custom blade file:
@extends('layouts.print')
@section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number)
@section('content')
Date d'écheance: @date($invoice->due_at)
{{ trans_choice($text_override['items'], 2) }} | {{ trans($text_override['quantity']) }} | Unité | {{ trans($text_override['price']) }} | {{ trans('invoices.total') }} |
---|
{{ trans($total->title) }}: | @money($total->amount, $invoice->currency_code, true) |
{{ trans('invoices.paid') }}: | - @money($invoice->paid, $invoice->currency_code, true) |
{{ trans($total->name) }}: | @money($total->amount - $invoice->paid, $invoice->currency_code, true) |
In case someone has the same Issue. The " $logo " variable is defined by a viewComposer.
On App\Providers\ViewComposer.php, You have a view::Composer([]) and you have to add your new view there.
:D
Showing 1 to 2 of 2 discussions