ultimatepos/resources/views/home/partials/purchase_due.blade.php

30 lines
1.8 KiB
PHP

@component('components.static', [
'svg' => '<svg aria-hidden="true" class="tw-w-6 tw-h-6" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M12 9v4" />
<path
d="M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z" />
<path d="M12 16h.01" />
</svg>', 'svg_bg' => 'tw-text-yellow-500', 'svg_text' => 'tw-bg-yellow-100'
])
<p class="tw-text-sm tw-font-medium tw-text-gray-500 tw-truncate tw-whitespace-nowrap">
{{ $dashboard_detail->heading }}
</p>
@if (isset($dashboard_detail))
<script>
document.addEventListener("DOMContentLoaded", function() {
update_statistics(@json($dashboard_detail->start_date), @json($dashboard_detail->end_date), "purchase_due",
@json($dashboard_detail->index), @json($dashboard_detail->location), {{ $user_id ?? null }});
// Call your function when the content is ready
});
</script>
<p
class="purchase_due_{{ $dashboard_detail->index }} tw-mt-0.5 tw-text-gray-900 tw-text-xl tw-truncate tw-font-semibold tw-tracking-tight tw-font-mono">
</p>
<small>{{ $date_range }}</small>
@endif
@endcomponent