This commit is contained in:
Cüneyt Şentürk 2022-06-23 15:30:41 +03:00
parent a5990aa95e
commit 9d21351fae
4 changed files with 26 additions and 9 deletions

View File

@ -4,8 +4,11 @@
<ul class="text-sm space-y-3 my-3">
@foreach($accounts as $item)
<li class="flex justify-between">
{{ $item->name }}
<span class="font-medium">{{ $item->balance_formatted }}</span>
{{ $item->title }}
<span class="font-medium">
{{ $item->balance_formatted }}
</span>
</li>
@endforeach
</ul>

View File

@ -12,7 +12,9 @@
{{ $totals['incoming'] }}
</div>
<span class="text-green text-xs">{{ trans('general.incoming') }}</span>
<span class="text-green text-xs">
{{ trans('general.incoming') }}
</span>
<span class="material-icons mt-2">remove</span>
</div>
@ -22,7 +24,9 @@
{{ $totals['outgoing'] }}
</div>
<span class="text-rose text-xs">{{ trans('general.outgoing') }}</span>
<span class="text-rose text-xs">
{{ trans('general.outgoing') }}
</span>
<span class="material-icons mt-2">drag_handle</span>
</div>

View File

@ -5,7 +5,10 @@
@foreach($currencies as $item)
<li class="flex justify-between">
{{ $item->name }}
<span class="font-medium">{{ $item->rate }}</span>
<span class="font-medium">
{{ $item->rate }}
</span>
</li>
@endforeach
</ul>

View File

@ -28,17 +28,24 @@
</span>
<button id="dashboard-widget-{{ strtolower(class_basename($class)) }}-overdue" type="button" class="flex items-center text-black-400 font-medium group" data-dropdown-toggle="widgets-list-{{ $class->model->id }}">
<span class="border-b border-transparent transition-all group-hover:border-black-400"> {{ $totals['overdue'] }} </span>
<span class="border-b border-transparent transition-all group-hover:border-black-400">
{{ $totals['overdue'] }}
</span>
<div class="relative flex">
<span class="material-icons-round cursor-pointer">arrow_drop_down</span>
<div id="widgets-list-{{ $class->model->id }}" class="absolute right-0 mt-3 py-2 bg-white rounded-md border border-gray-200 shadow-xl z-20 hidden" style="left: auto; min-width: 10rem;">
@foreach($periods as $name => $amount)
@foreach ($periods as $name => $amount)
<div id="dashboard-widget-{{ strtolower(class_basename($class)) }}-{{ str_replace('_', '-', $name) }}" class="w-full flex items-center text-purple px-2 h-9 leading-9 whitespace-nowrap cursor-auto">
<div class="w-full h-full flex items-center justify-between rounded-md px-2 text-sm hover:bg-lilac-100">
<div class="font-normal text-sm">{{ trans('widgets.periods.' . $name) }}</div>
<div class="pl-12 text-sm">{{ $amount }}</div>
<div class="font-normal text-sm">
{{ trans('widgets.periods.' . $name) }}
</div>
<div class="pl-12 text-sm">
{{ $amount }}
</div>
</div>
</div>
@endforeach