@extends('dashboard.layouts.app') @section('content') @include('components.alert')

Exchange rate: one unit of the currency equals this many units of the default currency. The default rate is 1. Changing the default keeps track price numbers unchanged.

@can('finance_currency_rate_store')
Add New Currency Rate

Create a new rate and optionally set it as the default conversion currency.

New Rate
@csrf
@error('currency') {{ $message }} @enderror
@error('rate') {{ $message }} @enderror
@error('is_default') {{ $message }} @enderror
@endcan
Current Currency Rates

Current stored exchange rates, default status, creator, and available actions.

{{ $rates->count() }} Rate(s)
@forelse($rates as $rate) {{ $loop->iteration }}
{{ $rate->currency }}
Currency rate
{{ number_format($rate->rate, 2) }} @if($rate->is_default) Yes @else No @endif
{{ $rate->createdBy->full_name ?? '—' }}
@canany(['finance_currency_rate_update', 'finance_currency_rate_destroy', 'finance_currency_rate_history'])
@can('finance_currency_rate_history') @endcan @can('finance_currency_rate_update') @endcan @can('finance_currency_rate_destroy') @endcan
@endcanany @empty
No currency rates found.

Create a currency rate to start managing conversions.

@endforelse
{{-- Delete Modal --}} {{-- Edit Modal --}} @endsection