@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'])
@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)
| {{ $r->currency_from }} |
{{ $r->currency_to }} |
{{ number_format($r->rate,6) }} |
{{ $r->effective_date->format('M j, Y') }} |
{{ $r->source ?: '—' }} |
Edit
|
@empty
| No exchange rates yet. |
@endforelse
{{ $rates->withQueryString()->links() }}
@endsection