@extends('template.layouts.page') @section('title', __('Currency rates')) @section('content_container_classes', 'container-fluid') @section('content_header') {{ __('Currency rates') . ' - ' . $from->iso_code . ' > ' . $to->iso_code }} @stop @section('content')
{{ __('Overview') }}
{{ __('From') }}
{{ $from->name }}
{{ __('To') }}
{{ $to->name }}
{{ __('Number of records') }}
{{ $currencyRates->count() }}
{{ __('First avaiable data') }}
@if ($currencyRates->count() > 0)
{{ $currencyRates->first('date')?->date->locale(auth()->user()->locale)->isoFormat('LL') }}
@else
{{ __('No data') }}
@endif
{{ __('Last available data') }}
@if ($currencyRates->count() > 0)
{{ $currencyRates->last('date')?->date->locale(auth()->user()->locale)->isoFormat('LL') }}
@else
{{ __('No data') }}
@endif
{{ __('Last known rate') }}
@if ($currencyRates->count() > 0)
{{ \Illuminate\Support\Number::currency( 1, $from->iso_code, auth()->user()->locale ) }} = {{ \Illuminate\Support\Number::currency( $currencyRates->last('date')?->rate ?? 0, $to->iso_code, auth()->user()->locale ) }}
@else
{{ __('No data') }}
@endif
{{ __('Filters') }}
    @include('template.components.tablefilter-sidebar-search')
{{ __('Currency rate values') }}
@include('template.components.model-delete-form') @stop