@extends('accounts.layouts.cheque') @section('title', trans_choice('general.cheques', 1) . ': ' . $cheque->cheque_number) @section('content')
@if ($logo) @endif
{{ setting('general.company_name') }}
{!! nl2br(setting('general.company_address')) !!}
@if (setting('general.company_tax_number')) {{ trans('general.tax_number') }}: {{ setting('general.company_tax_number') }}
@endif
@if (setting('general.company_phone')) {{ setting('general.company_phone') }}
@endif {{ setting('general.company_email') }}
{{-- --}}
{{ trans('cheques.cheque_number') }}: {{ $cheque->cheque_number }}
{{ trans('cheques.paid_date') }}: {{ Date::parse($cheque->paid_at)->format($date_format) }}
{{ trans('cheques.payment_due') }}: {{ Date::parse($cheque->due_at)->format($date_format) }}
{{ trans('cheques.cheque_from') }}
{{ $cheque->vendor_name }}
{!! nl2br($cheque->vendor_address) !!}
@if ($cheque->vendor_tax_number) {{ trans('general.tax_number') }}: {{ $cheque->vendor_tax_number }}
@endif
@if ($cheque->vendor_phone) {{ $cheque->vendor_phone }}
@endif {{ $cheque->vendor_email }}
@foreach($cheque->account_details as $item) @endforeach
{{ trans_choice('accounting.accountdetails', 1) }} {{ trans_choice('general.description', 1) }} {{ trans('bills.price') }} {{ trans('bills.total') }}
{{ $item->name }} {{ isset($item->description)?$item->description:'-' }} @money($item->price, $cheque->currency_code, true) @money($item->total, $cheque->currency_code, true)
@if ($cheque->notes)

{{ trans_choice('general.notes', 2) }}:

{{ $cheque->notes }}

@endif
@foreach($cheque->totals as $total) @if ($total->code != 'total') @else @if ($cheque->paid) @endif @endif @endforeach
{{ trans($total['name']) }}: @money($total->amount, $cheque->currency_code, true)
{{ trans('invoices.paid') }}: - @money($cheque->paid, $cheque->currency_code, true)
{{ trans($total['name']) }}: @money($total->amount - $cheque->paid, $cheque->currency_code, true)
@endsection