@error('search') @enderror
@livewire('to-account', ['label' => __('From / to account')]) @error('account') @enderror
@livewire('amount', [ 'label' => __('Amount'), 'maxLengthHoursInput' => timebank_config('maxLengthHoursInput.user'), ]) {{-- TODO: if user is admin or bank: --}} @error('amount') @enderror
@error('searchTypes') @enderror
{{ __('Search') }} {{ __('Clear all') }}
@if (session('error')) @endif
{{ __('Loading...') }}
@if ($hideBalance === false) @endif @if ($transactions) @foreach ($transactions as $transaction) @if ($hideBalance === false) @endif @endforeach @else @endif
{{ __('Date') }} {{ __('From / to') }} {{ __('Amount') }}
{{ \Carbon\Carbon::parse($transaction['datetime'])->translatedFormat('d M') }}
{{ \Carbon\Carbon::parse($transaction['datetime'])->translatedFormat('Y') }}
profile
{{ $transaction['c/d'] === 'Debit' ? __('To') : __('From') }}
{{ $transaction['relation'] }}
@if ($transaction['c/d'] === 'Debit') {{ tbFormat($transaction['amount']) }} - @else {{ tbFormat($transaction['amount']) }} + @endif
{{ __('One moment, collecting all your transactions...') }} {{ __('No transactions found') }}
@if($transactions && $transactions->hasPages())
{{ $transactions->links('livewire.long-paginator') }}
@endif
@if ($transactions && $transactions->total() > 0)
{{ __('per page') }}
{{ trans_choice('messages.transactions_found', $transactions->total(), ['count' => $transactions->total()]) }}
@endif @push('scripts') {{-- Accordion script --}} {{-- Scroll to top when clicking paginator --}} @endpush