diff --git a/composer.json b/composer.json index 4230afc..992300c 100644 --- a/composer.json +++ b/composer.json @@ -9,6 +9,7 @@ "license": "MIT", "require": { "php": "^8.1", + "andcarpi/laravel-popper": "^0.9.4", "anhskohbo/no-captcha": "^3.5", "blade-ui-kit/blade-icons": "^1.5", "cviebrock/eloquent-sluggable": "^10.0", diff --git a/composer.lock b/composer.lock index 80ffe4a..4f04f1c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,64 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bff25bed7714b9e4c1383d029a29c3fd", + "content-hash": "6bfadf87b8450cc61e25f15f00688ecd", "packages": [ + { + "name": "andcarpi/laravel-popper", + "version": "0.9.4", + "source": { + "type": "git", + "url": "https://github.com/andcarpi/laravel-popper.git", + "reference": "fd01cbc60a62acd71ff4205ae7a03820b1a9951c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/andcarpi/laravel-popper/zipball/fd01cbc60a62acd71ff4205ae7a03820b1a9951c", + "reference": "fd01cbc60a62acd71ff4205ae7a03820b1a9951c", + "shasum": "" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "andcarpi\\Popper\\PopperServiceProvider" + ], + "aliases": { + "Popper": "andcarpi\\Popper\\Facades\\Popper" + } + } + }, + "autoload": { + "psr-4": { + "andcarpi\\Popper\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Anderson Carpi", + "email": "kustelac@yahoo.com.br" + } + ], + "description": "A Easy to use Laravel Package, that allows you to generate tooltips in your blade views.", + "keywords": [ + "blade", + "laravel", + "laravel-package", + "popper", + "tippy", + "tooltip", + "view" + ], + "support": { + "issues": "https://github.com/andcarpi/laravel-popper/issues", + "source": "https://github.com/andcarpi/laravel-popper/tree/master" + }, + "time": "2019-09-26T02:06:56+00:00" + }, { "name": "anhskohbo/no-captcha", "version": "3.5.0", diff --git a/resources/js/app.js b/resources/js/app.js index 2177a4f..1e745ca 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1,3 +1,2 @@ import "./bootstrap"; import "flowbite"; - diff --git a/resources/views/champions/index.blade.php b/resources/views/champions/index.blade.php index 0d247f5..6eeaefa 100644 --- a/resources/views/champions/index.blade.php +++ b/resources/views/champions/index.blade.php @@ -48,8 +48,7 @@ - - +@include('popper::assets') diff --git a/resources/views/components/champions/list_all.blade.php b/resources/views/components/champions/list_all.blade.php index d5cce5a..d48f3fd 100644 --- a/resources/views/components/champions/list_all.blade.php +++ b/resources/views/components/champions/list_all.blade.php @@ -1,7 +1,7 @@

{{ $champion->title }} -
+

@foreach($roles[$key]->roles as $lane) {{$lane}} - {{$lane}} Icon + theme('dark')->position('bottom')->pop($lane)}} + @if($key < 8) loading="auto" @else loading="lazy" + @endif src="{{getRoleIcon($lane)}}" + alt="{{$lane}} Icon" + class="w-7 h-7 mr-1">

@endforeach -