{{-- format-ignore-start --}} @props([ // where do you want the notification displayed // available options are top-right, top-center, top-left, bottom-right, bottom-center, bottom-left 'position' => config('bladewind.notification.position', 'top-right'), 'nonce' => config('bladewind.script.nonce', null), ]) @php // [type] is replaced with the type of notification in notification.js $css = " p-2 rounded-full bg-[type]-200/80 dark:bg-[type]-600 text-[type]-600 dark:text-[type]-100"; $position = str_replace(' ', '_', $position); $position_css = [ 'top_right' => 'right-4 top-10', 'top_center' => 'top-10', // FIXME:: 'top_left' => 'left-4 top-10', 'bottom_right' => 'right-4 bottom-10', 'bottom_center' => 'bottom-10', // FIXME:: 'bottom_left' => 'left-4 bottom-10', ]; @endphp {{-- format-ignore-end --}}
{{--sm:w-1/4 sm:w-96 md:w-96 w-11/12--}} @php include_once(public_path('vendor/bladewind/js/notification.js')); @endphp