@extends('layouts.app') @section('content')
Currency
{{$currency->name}} {{$currency->code}}
BUYING {{number_format($currency->buying,2)}}
SELLING {{number_format($currency->selling,2)}}
MEAN {{number_format($currency->mean,2)}}
{{csrf_field()}}
Edit @if(Auth::user()->role=='Administrator' || Auth::user()->role=='Rates Admin') @endif
Exchange rate trends
Add exchange rate @foreach($exchangeRates as $rate) @endforeach
Date Buying Selling Mean User
{{date_format(date_create($rate->created_at),'dS M Y h:ia')}} {{number_format($rate->buying,2)}} {{number_format($rate->selling,2)}} {{number_format($rate->mean,2)}} {{$rate->user->name}}
{{csrf_field()}}
@if(Auth::user()->role=='Administrator') @endif
{{$exchangeRates->links()}}
@endsection @section('scripts') @endsection