@extends('layouts.app') @section('header')
Currency Details
@endsection @section('content')
{{$currency->name}} {{$currency->code}}
BUYING {{number_format($currency->buying,2)}}
SELLING {{number_format($currency->selling,2)}}
MEAN {{number_format($currency->mean,2)}}
@can('is_admin', auth()->user())
{{csrf_field()}}
Edit @if(Auth::user()->role=='Administrator' || Auth::user()->role=='Rates Admin') @endif
@endcan
Exchange rate trends
@can('is_admin', auth()->user()) Add exchange rate @endcan @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