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

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

@if ($accId!=null || $tranType!=null || $from!=null || $to!=null) @else @endif
@foreach ($transactions as $key=>$transaction) @endforeach
{{ \App\Utils\translate('date') }} {{ \App\Utils\translate('account') }} {{\App\Utils\translate('type')}} {{\App\Utils\translate('amount')}} {{\App\Utils\translate('description')}} {{ \App\Utils\translate('debit') }} {{\App\Utils\translate('credit')}} {{\App\Utils\translate('balance')}}
{{ $transaction->date }} @if($transaction->account) {{$transaction->account->account}} @else {{ \App\Utils\translate('Account Deleted') }} @endif @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()) }} {{ Str::limit($transaction->description,30) }} @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 {{ priceCurrencyFormatPlacing($transaction->balance, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }}
{!! $transactions->links() !!}
@if(count($transactions)==0)
{{\App\Utils\translate('image_description')}}

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

@endif
@endsection @push('script_2') @endpush