Initial commit
This commit is contained in:
38
resources/views/livewire/account-info-modal.blade.php
Normal file
38
resources/views/livewire/account-info-modal.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<div>
|
||||
<x-jetstream.dialog-modal wire:model="show" maxWidth="lg" closeButton="true">
|
||||
<x-slot name="title">
|
||||
{{ __('Account info') }}
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="content">
|
||||
@if (count($accounts) > 0)
|
||||
<div class="divide-y divide-theme-border">
|
||||
@foreach ($accounts as $account)
|
||||
<div class="flex items-center justify-between py-3">
|
||||
<span class="text-sm text-theme-primary">{{ $account['name'] }}</span>
|
||||
<span class="text-sm font-medium text-theme-primary">{{ $account['balanceFormatted'] }}</span>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="mt-4 flex items-center justify-between border-t border-theme-border pt-4">
|
||||
<span class="text-sm font-semibold text-theme-primary">{{ __('Total available') }}</span>
|
||||
<span class="text-sm font-semibold text-theme-primary">{{ $totalBalanceFormatted }}</span>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 flex items-center gap-3 border-t border-theme-border pt-4">
|
||||
<x-toggle wire:model.live="decimalFormat" id="decimalFormat" name="decimalFormat" />
|
||||
<span class="text-xs text-theme-light">{{ __('Show in decimals') }} ({{ $totalBalanceDecimal }} {{ __('h.') }})</span>
|
||||
</div>
|
||||
@else
|
||||
<p class="text-sm text-theme-light">{{ __('No active accounts found.') }}</p>
|
||||
@endif
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="footer">
|
||||
<x-jetstream.secondary-button wire:click="close">
|
||||
{{ __('Close') }}
|
||||
</x-jetstream.secondary-button>
|
||||
</x-slot>
|
||||
</x-jetstream.dialog-modal>
|
||||
</div>
|
||||
Reference in New Issue
Block a user