@extends('layouts.app') @section('content')
{{ _lang('Transactions Report') }}
{{ csrf_field() }}
@php $date_format = get_option('date_format','Y-m-d'); @endphp @php $currency = currency(); @endphp

{{ _lang('Transactions Report') }}

{{ isset($date1) ? date($date_format, strtotime($date1)).' '._lang('to').' '.date($date_format, strtotime($date2)) : '---------- '._lang('to').' ----------' }}
@if(isset($report_data)) @foreach($report_data as $transaction) @php $symbol = $transaction->dr_cr == 'dr' ? '-' : '+'; $class = $transaction->dr_cr == 'dr' ? 'text-danger' : 'text-success'; @endphp @if($transaction->dr_cr == 'dr') @else @endif @endforeach @endif
{{ _lang('Date') }} {{ _lang('User') }} {{ _lang('AC Number') }} {{ _lang('Currency') }} {{ _lang('Amount') }} {{ _lang('Charge') }} {{ _lang('Grand Total') }} {{ _lang('DR/CR') }} {{ _lang('Type') }} {{ _lang('Status') }} {{ _lang('Details') }}
{{ $transaction->created_at }} {{ $transaction->user->name }}
{{ $transaction->user->email }}
{{ $transaction->user->account_number }} {{ $transaction->currency->name }}{{ decimalPlace(($transaction->amount - $transaction->fee), currency($transaction->currency->name)) }}{{ decimalPlace(($transaction->amount + $transaction->fee), currency($transaction->currency->name)) }}{{ $transaction->dr_cr == 'dr' ? '+ '.decimalPlace($transaction->fee, currency($transaction->currency->name)) : '- '.decimalPlace($transaction->fee, currency($transaction->currency->name)) }} {{ $symbol.' '.decimalPlace($transaction->amount, currency($transaction->currency->name)) }} {{ strtoupper($transaction->dr_cr) }} {{ str_replace('_',' ',$transaction->type) }} {!! xss_clean(transaction_status($transaction->status)) !!} {{ _lang('View') }}
@endsection