@extends('adminlte::page') @section('title', 'Currency Details') @section('content_header')

Currency Details: {{ $currency->name }}

@endsection @section('content')

Currency Information

Name:
{{ $currency->name }}
Code:
{{ $currency->code }}
Symbol:
{{ $currency->symbol }}
Sort Order:
{{ $currency->sort_order }}
Status:
{{ $currency->is_active ? 'Active' : 'Inactive' }}
Primary:
@if($currency->is_primary) Yes - Primary Currency @else No @endif
Created:
{{ $currency->created_at->format('d M Y H:i') }}
Updated:
{{ $currency->updated_at->format('d M Y H:i') }}

Usage Statistics

Members Using {{ $currency->is_primary ? \App\Models\Membership::count() : 0 }}
{{ $currency->is_primary ? 'All members' : 'Not yet implemented' }}
Loans in Currency {{ $currency->is_primary ? \App\Models\Loan::count() : 0 }}
{{ $currency->is_primary ? 'All loans' : 'Not yet implemented' }}
Savings Accounts {{ $currency->is_primary ? \App\Models\Saving::count() : 0 }}
{{ $currency->is_primary ? 'All savings' : 'Not yet implemented' }}

Quick Actions

@if(!$currency->is_primary)
@csrf @method('PATCH')
@endif
@csrf @method('PATCH')
@if(!$currency->is_primary)
@csrf @method('DELETE')
@endif

Currency Preview

{{ $currency->symbol }}

{{ $currency->name }} ({{ $currency->code }})

Example: {{ $currency->formatAmount(1234.56) }}
@if($currency->is_primary)

Primary Currency

This is the primary currency for the entire system. All monetary values throughout the application use this currency as the default.

@endif
@endsection @push('js') @if(session('success')) Swal.fire({ icon: 'success', title: 'Success!', text: '{{ session("success") }}', timer: 3000, showConfirmButton: false }); @endif @if(session('error')) Swal.fire({ icon: 'error', title: 'Error!', text: '{{ session("error") }}', timer: 3000, showConfirmButton: false }); @endif @endpush