@extends('backend.layouts.main') @section('title', 'Forex Rate List') @section('content')

Forex Rates

Country Flag Codes

When adding a new forex rate, use the country code for the country flag field (e.g., us for United States, gb for United Kingdom,cn for China, jp for Japan, in for India).

For a complete list of country codes, visit https://flagicons.lipis.dev/.

@foreach ($forexRates as $forexRate) @endforeach
S.N. Date Morning Rates Afternoon Rates Actions
{{ $loop->iteration }} {{ $forexRate->date }} @if(!empty($forexRate->slots['morning']))
    @foreach ($forexRate->slots['morning'] ?? [] as $morning) @if(isset($morning['is_published']) && $morning['is_published'])
  • @if(isset($morning['flag'])) @endif {{ $morning['currency'] ?? '' }} - {{ $morning['buying_rate'] ?? '' }}
  • @endif @endforeach
@else No morning rates @endif
@if(!empty($forexRate->slots['afternoon']))
    @foreach ($forexRate->slots['afternoon'] ?? [] as $afternoon) @if(isset($afternoon['is_published']) && $afternoon['is_published'])
  • @if(isset($afternoon['flag'])) @endif {{ $afternoon['currency'] ?? '' }} - {{ $afternoon['buying_rate'] ?? '' }}
  • @endif @endforeach
@else No afternoon rates @endif
@endsection @section('scripts') @endsection