@extends('layouts.default') @section('title', trans_choice('general.cheques', 1) . ': ' . $cheque->cheque_number) @section('new_button') view_list{{ trans_choice('general.cheques', 2) . 'List'}} editEdit add {{ trans_choice('general.cheques', 2) }} @endsection @section('content')
{{-- {{ $cheque->cheque_status_code }} --}}
@if (isset($cheque->vendor->logo) && !empty($cheque->vendor->logo->id)) @else @endif
{{ setting('general.company_name') }}
{!! nl2br(setting('general.company_address')) !!}
@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.cheque_from') }}
{{ $cheque->person_name }}
{!! nl2br($cheque->person_address) !!}
@if ($cheque->person_phone) {{ $cheque->person_phone }}
@endif {{ $cheque->person_email }}
{{-- Accounts List --}} @if(count($cheque->account_details)>0)
@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 }} {{ $item->description }} @money($item->price, $cheque->currency_code, true) @money($item->total, $cheque->currency_code, true)
@endif
@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->currency_code, true)

{{ trans('cheques.histories') }}

@foreach($cheque->histories as $history) @endforeach
{{ trans('general.date') }} {{ trans_choice('general.statuses', 1) }} {{ trans('general.description') }}
{{ Date::parse($cheque->created_at)->format($date_format) }} {{ isset($cheque->status->name)?$cheque->status->name:''}} {{ $cheque->description }}

{{ trans('cheques.payments') }}

@foreach($cheque->payments as $payment) @endforeach
{{ trans('general.date') }} {{ trans('general.amount') }} {{ trans_choice('general.accounts', 1) }}
{{ Date::parse($payment->paid_at)->format($date_format) }} @money($payment->amount, $payment->currency_code, true) {{ isset($payment->account->name)?$payment->account->name:'' }}
@endsection @push('scripts') @endpush