akaunting/resources/views/components/empty-page.blade.php

82 lines
3.4 KiB
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<div class="flex flex-col lg:flex-row">
<div class="w-full lg:w-1/2">
<div class="border-b px-2 pb-3">
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
2022-08-16 15:20:03 +03:00
<x-title>
2022-08-02 10:32:37 +03:00
{!! $title !!}
2022-08-16 15:20:03 +03:00
</x-title>
2022-06-01 10:15:55 +03:00
</h1>
2021-02-12 14:52:18 +03:00
2022-06-01 10:15:55 +03:00
<p class="mt-6 text-sm">
{!! $description !!}
</p>
2021-02-12 14:52:18 +03:00
</div>
2022-06-01 10:15:55 +03:00
<ul>
@foreach ($buttons as $button)
@if ($checkPermissionCreate)
@can ($button['permission'])
@endif
<li class="border-b p-2 hover:bg-gray-100">
2022-08-03 14:04:32 +03:00
<x-link href="{{ $button['url']}}" class="flex items-center justify-between text-xs" override="class">
2022-06-01 10:15:55 +03:00
<div class="truncate">
<div class="flex items-center">
<h2 class="relative">
{{ $button['text'] }}
2021-02-12 14:52:18 +03:00
2022-06-01 10:15:55 +03:00
@if (! empty($button['active_badge']))
2022-08-11 17:35:58 +03:00
<div class="absolute w-7 h-7 opacity-100 z-10 -top-1.5 -right-8">
2022-06-01 10:15:55 +03:00
<div class="absolute w-5 h-5 left-0 top-1 border border-gray-100 rounded-full animate-pulsate_transparent bg-white"></div>
<div class="absolute w-2 h-2 top-2.5 left-1.5 rounded-full bg-green-400"></div>
</div>
@endif
</h2>
</div>
<div class="h-4 overflow-hidden text-black-400 truncate">{{ $button['description'] }}</div>
</div>
<span class="material-icons text-gray-500 transform rtl:rotate-180">chevron_right</span>
2022-08-03 14:04:32 +03:00
</x-link>
2022-06-01 10:15:55 +03:00
</li>
@if ($checkPermissionCreate)
2021-02-15 10:11:44 +03:00
@endcan
2022-06-01 10:15:55 +03:00
@endif
@endforeach
2022-11-01 15:37:56 +03:00
@if (! empty($suggestions))
@foreach ($suggestions as $suggestion)
<li class="border-b p-2 hover:bg-gray-100">
<x-link href="{{ url($suggestion->action_url) . '?' . http_build_query((array) $suggestion->action_parameters) }}" class="flex items-center justify-between text-xs" override="class">
<div class="truncate">
<h2>
{{ $suggestion->name }}
</h2>
2022-06-01 10:15:55 +03:00
2022-11-01 15:37:56 +03:00
<div class="h-4 overflow-hidden text-black-400 truncate">
{{ $suggestion->description ?? '' }}
</div>
</div>
2022-06-01 10:15:55 +03:00
2023-02-07 18:16:39 +03:00
<span class="material-icons text-gray-500 rtl:rotate-180">chevron_right</span>
2022-11-01 15:37:56 +03:00
</x-link>
</li>
@endforeach
2021-02-12 14:52:18 +03:00
@endif
2022-06-01 10:15:55 +03:00
</ul>
</div>
2022-10-31 17:03:15 +03:00
<div class="w-full lg:w-1/2 flex justify-end mt-8 lg:mt-60">
2023-02-07 18:16:39 +03:00
<img src="{{ $image }}" alt="{{ $title }}" class="ltr:scale-x-100 rtl:-scale-x-100" />
2021-02-12 14:52:18 +03:00
</div>
</div>
2022-06-01 10:15:55 +03:00
@push('css')
<style>
.hide-empty-page {
display: none;
}
</style>
@endpush
2023-02-07 18:16:39 +03:00