@extends('procurement::layouts.master') @section('title','Exchange Rates') @section('content') @include('procurement::components.partials.page_header',['title'=>'Exchange Rates','actionRoute'=>route('procurement.exchange-rates.create'),'actionLabel'=>'Add Rate'])
Clear
@include('procurement::components.partials.sortable_th', ['label'=>'From','field'=>'from']) @include('procurement::components.partials.sortable_th', ['label'=>'To','field'=>'to']) @include('procurement::components.partials.sortable_th', ['label'=>'Rate','field'=>'rate','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Effective Date','field'=>'date']) @include('procurement::components.partials.sortable_th', ['label'=>'Source','field'=>'source']) @forelse($rates as $r) @empty @endforelse
{{ $r->currency_from }} {{ $r->currency_to }} {{ number_format($r->rate,6) }} {{ $r->effective_date->format('M j, Y') }} {{ $r->source ?: '—' }} Edit
@csrf @method('DELETE')
No exchange rates yet.
{{ $rates->withQueryString()->links() }} @endsection