@if (tenant() && tenant()->logoUrl())
@endif {{ setting('company_name') }}
{{ setting('company_address') }}
{{ __('Simu') }}: {{ setting('company_phone') }} @if (setting('company_tin'))
{{ __('TIN') }}: {{ setting('company_tin') }}@endif

@if ($sale->customer)@endif
{{ __('Ankara') }}:{{ $sale->invoice_no }}
{{ __('Tarehe') }}:{{ $sale->created_at->format('d/m/Y H:i') }}
{{ __('Mteja') }}:{{ $sale->customer->name ?? __('Papo hapo') }}
{{ __('Code') }}:{{ $sale->customer->code }}
{{ __('Muuzaji') }}:{{ $sale->user->name }}

@foreach ($sale->items as $i) @endforeach
{{ $i->product->name }}
  {{ $i->qty }} {{ __('x') }} {{ money($i->unit_price, false) }}{{ money($i->line_total, false) }}

@if ($sale->discount > 0)@endif
{{ __('Punguzo') }}-{{ money($sale->discount, false) }}
{{ __('JUMLA') }}{{ money($sale->total) }}
{{ __('Imelipwa') }}{{ money($sale->paid, false) }}
{{ __('Deni') }}{{ money($sale->balance, false) }}
@if ($sale->balance > 0)
{{ __('LIPA KUPITIA') }}:
{!! nl2br(e(setting('payment_accounts'))) !!}
{{ __('Weka code') }} {{ $sale->customer->code ?? '' }} {{ __('kwenye maelezo') }}.
{{ __('Tuma risiti WhatsApp') }}.
@endif
{{ setting('receipt_footer') }}
@include('partials.printer')