@extends('companyuser::layouts.master') @section('title', __('sales::customers.Show Customer')) @section('extra-styles') @endsection @section('breadcrumb')
@endsection @section('content'){{ number_format($statistics['totalOfAllInvoices'])}} {!! __('currencies.'.$currency) !!}
{{ $statistics['invoiceCount']}}
@lang('companyuser::sidebar.Invoices')
{{ number_format($statistics['overdue'])}} {!! __('currencies.'.$currency) !!}
{{ number_format($statistics['outstandingBalance'])}} {!! __('currencies.'.$currency) !!}
| @lang('purchases::purchase_bills.Reference ID') | @lang('purchases::purchase_bills.Date') | @lang('purchases::purchase_bills.status') | @lang('purchases::purchase_bills.Amount') |
|---|---|---|---|
| {{$salesEstimate->code}} | {{ $salesEstimate->formatDate($salesEstimate->issue_date) }} | @if($salesEstimate->status) {{ Modules\Sales\Enums\EstimateStatusEnum::toString($salesEstimate->status) }} @endif | {{ ($salesEstimate->total < 0 ) ? '(' . number_format(abs($salesEstimate->total),2,".",",") . ')' : number_format($salesEstimate->total,2,".",",") }} |
| @lang('purchases::purchase_bills.Reference ID') | @lang('purchases::purchase_bills.Date') | @lang('purchases::purchase_bills.status') | @lang('purchases::purchase_bills.Amount') | @lang('purchases::purchase_bills.outstanding') |
|---|---|---|---|---|
| {{$invoice->reference}} | {{ $invoice->formatDate($invoice->date) }} | @if($invoice->status) {{ Modules\Purchases\Enums\BillStatusEnum::toString($invoice->status) }} @endif | {{ ($invoice->total < 0 ) ? '(' . number_format(abs($invoice->total ),2,".",",") . ')' : number_format($invoice->total,2,".",",") }} | {{ ($invoice->outstanding < 0 ) ? '(' . number_format(abs($invoice->outstanding ),2) . ')' : number_format($invoice->outstanding,2) }} |
| @lang('purchases::purchase_bills.Reference ID') | @lang('purchases::purchase_bills.Date') | @lang('purchases::purchase_bills.Amount') | @lang('purchases::purchase_bills.outstanding') |
|---|---|---|---|
| {{$invoiceReturn->reference}} | {{ $invoiceReturn->formatDate($invoiceReturn->date) }} | {{ ($invoiceReturn->total < 0 ) ? '(' . number_format(abs($invoiceReturn->tota),2,".",","). ')' : number_format($invoiceReturn->total,2,".",",") }} | {{ ($invoiceReturn->outstanding < 0 ) ? '(' . number_format(abs($invoiceReturn->outstanding ),2) . ')' : number_format($invoiceReturn->outstanding,2) }} |
| @lang('purchases::purchase_bills.Reference ID') | @lang('purchases::purchase_bills.Date') | @lang('purchases::supplier_receipts.Kind') | @lang('purchases::purchase_bills.Amount') | @lang('purchases::purchase_bills.outstanding') |
|---|---|---|---|---|
| {{$customerPaymentReceipt->reference}} | {{ $customerPaymentReceipt->formatDateTime($customerPaymentReceipt->date) }} | {{ __('purchases::supplier_receipts.'.ucfirst($customerPaymentReceipt->kind)) }} | {{ ($customerPaymentReceipt->paid_amount < 0 ) ? '(' . number_format(abs($customerPaymentReceipt->paid_amount),2,".",",") . ')' : number_format($customerPaymentReceipt->paid_amount,2,".",",") }} | {{ ($customerPaymentReceipt->not_allocated_amount < 0 ) ? '(' . number_format(abs($customerPaymentReceipt->not_allocated_amount ),2) . ')' : number_format($customerPaymentReceipt->not_allocated_amount,2) }} |
| @lang('accounting::manual_journal_entries.Journal ID') | @lang('accounting::manual_journal_entries.Journal Date') | @lang('purchases::purchase_bills.Amount') |
|---|---|---|
| {{$journalEntry->display_code}} | {{$journalEntry->formatDateTime($journalEntry->journal_date)}} | @if($journalRecord->transaction_type == \Modules\Accounting\Enums\AccountTypesEnum::CREDIT) ({{number_format($journalRecord->value, 2, '.', ',')}}) @else {{number_format($journalRecord->value, 2, '.', ',')}} @endif |
| @lang('sales::customers.Date') | @lang('sales::customers.username') | @lang('sales::customers.Action') | @lang('sales::customers.Details') |
|---|---|---|---|
| {{$row->formatDateTime($row->created_at)}} | @if( $row->created_by == null) @lang('accounting::assets.System') @elseif( $row->created_by == auth()->user()->id) @lang('accounting::assets.You') @else {{ $row->user->uname}} @endif | {{__($row->event)}} |
@if($row->event!='created')
@foreach($row->new_values as $key => $change)
@if($key!='updated_at' && $key!= 'updated_by')
@if($key=='status')
{{__('sales::customers.'.$key) . ' '. __('sales::customers.changed to') .' '. ($change ? __('sales::customers.Active') : __('sales::customers.Not Active') ) }} @elseif($key=='custom_fields') @if($change) @foreach(array_values(json_decode($change, true)) as $customField) {{$customField['name_' . app()->getLocale()] . ' '. __('products::product.changed to') .' ' . (isset($customField['value'])? $customField['value'] : 0)}} @endforeach @else {{__('sales::customers.custom fields deleted')}} @endif @else {{__('sales::customers.'.$key) . ' '. __('sales::customers.changed to') .' '. $change}} @endif @endif @endforeach @endif |