{{-- resources/views/accounting/fx/journals/index.blade.php --}} @extends('admin.admin_dashboard') @section('admin')
@can('journals.fx.view')
@foreach($lines as $i => $ln) @endforeach
# Date Reference Account Debit Credit Currency FX Rate
{{ $i + 1 + ($lines->currentPage() - 1) * $lines->perPage() }} {{ \Carbon\Carbon::parse($ln->entry->entry_date)->format('Y-m-d') }} {{ $ln->entry->reference }} {{ $ln->account->full_name }} {{ number_format($ln->debit, 2) }} {{ number_format($ln->credit, 2) }} {{ $ln->currency->code }} {{ number_format($ln->fx_rate, 6) }}
{{ $lines->appends(request()->only('search'))->links('vendor.pagination.bootstrap-5') }}
@endcan
@endsection