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

Currency Management

@endsection @section('content')
Total Currencies
{{ $currencies->total() }}
Available currencies
Active Currencies
{{ $currencies->where('is_active', true)->count() }}
Currently available
Primary Currency
{{ $primaryCurrency ? $primaryCurrency->code : 'None' }}
System default
Inactive Currencies
{{ $currencies->where('is_active', false)->count() }}
Temporarily disabled

Currency List

@forelse($currencies as $currency) @empty @endforelse
ID Name Code Symbol Primary Status Sort Order Created Actions
{{ $currency->id }}
{{ $currency->name }}
{{ $currency->code }} {{ $currency->symbol }} @if($currency->is_primary) Primary @else
@csrf @method('PATCH')
@endif
{{ $currency->is_active ? 'Active' : 'Inactive' }} {{ $currency->sort_order }} {{ $currency->created_at->format('d M Y') }}
@csrf @method('PATCH')
@if(!$currency->is_primary)
@csrf @method('DELETE')
@endif
No Currencies Found

Start by adding your first currency to the system.

Add First Currency
@if($currencies->hasPages()) @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