@extends('layouts.app') @section('title', __('Bank & Sarafi')) @section('content')
{{ __('Add Financial Account') }}
@csrf

{{ __('Accounts') }}
@foreach($accounts as $account)
{{ $account->name }}{{ ucfirst($account->type) }} ยท {{ $account->currency_code }}{{ number_format($account->opening_balance,2) }}
@endforeach
{{ __('Sarafi Exchange Transaction') }}
@csrf

{{ __('Recent Exchanges') }}
@foreach($exchanges as $exchange)@endforeach
{{ __('Date') }}{{ __('From') }}{{ __('To') }}{{ __('Rate') }}
{{ $exchange->transaction_date->format('d M') }}{{ $exchange->fromAccount?->name }} {{ $exchange->from_amount }}{{ $exchange->toAccount?->name }} {{ $exchange->to_amount }}{{ $exchange->exchange_rate }}
@endsection