@php $info_right_column = ''; $info_left_column = ''; $info_right_column .= '' . trans('crm.credit_note_pdf_heading') . '
'; $info_right_column .= '# ' . $credit_note_number . ''; $status = $creditnote->status; if (get_option('show_status_on_pdf_ei') == 1) { $info_right_column .= '
' . format_credit_note_status($status, '') . ''; } // Add logo $company_logo = get_option('company_logo_dark') ? public_path('upload/company/'.get_option('company_logo_dark')) : ''; $info_left_column .= ''.get_option('companyname').''; // Write top left logo and right column info/text $organization_info = '
'; $organization_info .= format_organization_info(); $organization_info .= '
'; // Bill to $creditnote_info = '' . trans('crm.invoice_bill_to') . ''; $creditnote_info .= '
'; $creditnote_info .= format_customer_info($creditnote, 'credit_note', 'billing'); $creditnote_info .= '
'; // ship to to if ($creditnote->include_shipping == 1 && $creditnote->show_shipping_on_credit_note == 1) { $creditnote_info .= '
' . trans('crm.ship_to') . ''; $creditnote_info .= '
'; $creditnote_info .= format_customer_info($creditnote, 'credit_note', 'shipping'); $creditnote_info .= '
'; } $creditnote_info .= '
' . trans('crm.credit_note_date') . ' ' . local_date_format($creditnote->date) . '
'; if (!empty($creditnote->reference_no)) { $creditnote_info .= trans('crm.reference_no') . ' ' . $creditnote->reference_no . '
'; } @endphp
{!! $info_left_column !!} {!! $info_right_column !!}
{!! $organization_info !!} {!! $creditnote_info !!}
@foreach($creditnote->items as $item) @endforeach
# Item Qty Rate Amount
1 {{ $item->description }} {{ $item->qty }} {{ $item->rate }} {{ $item->qty * $item->rate }}
@php $tbltotal = ''; $tbltotal .= ''; $tbltotal .= ' '; $tbltotal .= ' '; $tbltotal .= ' '; $tbltotal .= ' '; $tbltotal .= '
' . trans('crm.invoice_subtotal') . ' ' . app_format_money($creditnote->subtotal, $creditnote->currency) . '
' . trans('crm.invoice_total') . ' ' . app_format_money($creditnote->total, $creditnote->currency) . '
' . trans('crm.credits_used') . ' ' . app_format_money($creditnote->credits_used, $creditnote->currency) . '
' . trans('crm.credits_remaining') . ' ' . app_format_money($creditnote->remaining_credits, $creditnote->currency) . '
'; echo $tbltotal; @endphp



@if(!empty($creditnote->clientnote))
{!! trans('crm.invoice_note') !!}

{!! $creditnote->clientnote !!}
@endif @if(!empty($creditnote->terms))

{!! trans('crm.terms_and_conditions') !!}

{!! $creditnote->terms !!}
@endif