Skip to content

Commit 64e0695

Browse files
committed
first version
1 parent 67bca9a commit 64e0695

File tree

12 files changed

+10
-69
lines changed

12 files changed

+10
-69
lines changed

resources/views/components/buttons/btn-link.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<a type="button" href="{{route($route)}}" class="btn btn-block btn-@if($outline == 'true') {{'outline-'}} @endif {{$type}}">@if($icon == ''){{$text}}@endif
2+
<a type="button" href="{{route($route)}}" class="btn btn-block btn-@if($outline == 'true'){{'outline-'}}@endif{{$type}}">@if($icon == ''){{$text}}@endif
33
@isset($icon)
44
<i class="fas fa-{{$icon}}"></i>
55
<span>{{$text}}</span>

resources/views/components/buttons/btn.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<button type="button" class="btn btn-block btn-@if($outline == 'true') {{'outilne-'}} @endif $type}}">@if($icon == ''){{$text}}@endif
2+
<button type="button" class="btn btn-block btn-@if($outline == 'true'){{'outilne-'}}@endif$type}}">@if($icon == ''){{$text}}@endif
33
@isset($icon)
44
<i class="fas fa-{{$icon}}"></i>
55
<span>{{$text}}</span>

resources/views/components/buttons/outlinew.blade.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

resources/views/components/buttons/success-link.blade.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

resources/views/components/buttons/success.blade.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

resources/views/components/buttons/warning.blade.php

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/Providers/UiServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use Paulido\Ui\View\Components\Navitem;
2525
use Paulido\Ui\View\Components\Navicon;
2626
use Paulido\Ui\View\Components\Navbar;
27-
use Paulido\Ui\View\Components\SideBar;
27+
use Paulido\Ui\View\Components\Sidebar;
2828
use Paulido\Ui\View\Components\Menu;
2929
use Paulido\Ui\View\Components\MenuItem;
3030
use Paulido\Ui\View\Components\Table;
@@ -97,7 +97,7 @@ public function boot()
9797
Blade::component('navitem', Navitem::class);
9898
Blade::component('navicon', Navicon::class);
9999
Blade::component('navbar', Navbar::class);
100-
Blade::component('sidebar', SideBar::class);
100+
Blade::component('sidebar', Sidebar::class);
101101
Blade::component('table', Table::class);
102102
Blade::component('modal-top', ModalTop::class);
103103
Blade::component('modal-login', ModalLogin::class);

src/View/Components/BtnLink.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class BtnLink extends Component
88
{
99
public $text;
10+
public $type;
1011
public $icon;
1112
public $route;
1213
public $outline;
@@ -15,12 +16,13 @@ class BtnLink extends Component
1516
*
1617
* @return void
1718
*/
18-
public function __construct($text = 'Danger', $icon = null, $route = '#', $outline = false)
19+
public function __construct($text = 'Danger', $icon = null, $route = '#', $outline = false, $type = '')
1920
{
2021
$this->text = $text;
2122
$this->icon = $icon;
2223
$this->route = $route;
2324
$this->outline = $outline;
25+
$this->type = $type;
2426
}
2527

2628

src/View/Components/ModalTop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function __construct($id = "actionmodal", $title = "Confirmation", $type
3535
*/
3636
public function render()
3737
{
38-
return view('ui::components.modals.top');
38+
return view('ui::components.modal-top');
3939
}
4040
}

0 commit comments

Comments
 (0)