@extends('layouts.admin.app') @section('title',\App\Utils\translate('customer_details')) @push('css_or_js') @endpush @section('content')

{{\App\Utils\translate('customer')}} {{\App\Utils\translate('id')}} #{{$customer['id']}}

{{\App\Utils\translate('joined_at')}} : {{date('d M Y H:i:s',strtotime($customer['created_at']))}}

{{\App\Utils\translate('transaction_list')}} {{$transactions->total()}}

@foreach($transactions as $key=>$transaction) @endforeach
{{\App\Utils\translate('#')}} {{ \App\Utils\translate('account') }} {{ \App\Utils\translate('type') }} {{ \App\Utils\translate('amount') }} {{\App\Utils\translate('date')}} {{\App\Utils\translate('debit')}} {{\App\Utils\translate('credit')}}
{{$transactions->firstItem()+$key}} {{ $transaction->account?->account}} @if ($transaction->tran_type == 'Expense') {{ $transaction->tran_type}}
@elseif($transaction->tran_type == 'Deposit') {{ $transaction->tran_type}}
@elseif($transaction->tran_type == 'Transfer') {{ $transaction->tran_type}}
@elseif($transaction->tran_type == 'Income') {{ $transaction->tran_type}}
@elseif($transaction->tran_type == 'Payable') {{ $transaction->tran_type}}
@elseif($transaction->tran_type == 'Receivable') {{ $transaction->tran_type}}
@endif
{{ priceCurrencyFormatPlacing($transaction->amount, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }} {{ $transaction->date }} @if ($transaction->debit) {{ priceCurrencyFormatPlacing($transaction->amount, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }} @else {{ priceCurrencyFormatPlacing(0, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }} @endif @if ($transaction->credit) {{ priceCurrencyFormatPlacing($transaction->amount, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }} @else {{ priceCurrencyFormatPlacing(0, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }} @endif
{!! $transactions->links() !!}
@if(count($transactions)==0)
{{\App\Utils\translate('Image Description')}}

{{ \App\Utils\translate('No_data_to_show')}}

@endif

{{\App\Utils\translate('customer')}}

@if($customer)
{{\App\Utils\translate('image_description')}}
{{$customer['name']}}

{{ $orders->count() }} {{\App\Utils\translate('orders')}}
{{ priceCurrencyFormatPlacing($customer->balance, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }}
@if($customer->id != 0)
{{\App\Utils\translate('contact_info')}}
  • {{$customer['mobile']}}
  • @if ($customer['email'])
  • {{$customer['email']}}
  • @endif

{{\App\Utils\translate('addresses')}}
  • {{\App\Utils\translate('state')}}: {{$customer['state']}}
  • {{\App\Utils\translate('city')}}: {{$customer['city']}}
  • {{\App\Utils\translate('zip_code')}}: {{$customer['zip_code']}}
  • {{\App\Utils\translate('address')}}: {{$customer['address']}}
@endif
@endif
@endsection @push('script_2') @endpush