@extends('layouts.master') @section('title', 'Multi Currency - Prolex Law Firm') @section('content')

Multi Currency Management

Add Currency
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf

@foreach ($currencies as $currency) @if($currency->currency_id) @endif @endforeach
Currency Code Currency Name Symbol Country Status Action
{{ $currency->currency_code }} {{ $currency->currency_name }} {{ $currency->symbol }} {{ $currency->country }} {{ $currency->is_active ? 'Active' : 'Inactive' }}
@csrf @method('DELETE')
{{ $homeCurrency ? 'Update Home Currency' : 'Add Home Currency' }}
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif @if($homeCurrency)
@csrf @method('PUT')

@else
@csrf

@endif
@foreach ($homeCurrencies as $homeCurrency) @if($homeCurrency->home_currency_id) @endif @endforeach
Currency Symbol Currency Name Action
{{ $homeCurrency->currency ? $homeCurrency->currency->symbol : '' }} {{ $homeCurrency->currency ? $homeCurrency->currency->currency_name : '' }}
@csrf @method('DELETE')
Add Daily Rate
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf

@foreach ($rates as $rate) @if($rate->rate_id) @endif @endforeach
Rate Date Base Currency Target Currency Exchange Rate Source Action
{{ $rate->rate_date }} {{ $rate->baseCurrency ? $rate->baseCurrency->symbol . ' - ' . $rate->baseCurrency->currency_name : '' }} {{ $rate->targetCurrency ? $rate->targetCurrency->symbol . ' - ' . $rate->targetCurrency->currency_name : '' }} {{ $rate->exchange_rate }} {{ $rate->source }}
@csrf @method('DELETE')
@endsection