Added new blade alert components..
This commit is contained in:
parent
35024b8cc2
commit
f457b7dcfe
18
app/View/Components/Alert/Border.php
Normal file
18
app/View/Components/Alert/Border.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\View\Components\Alert;
|
||||||
|
|
||||||
|
use App\View\Components\Alert as Component;
|
||||||
|
|
||||||
|
class Border extends Component
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the view / contents that represent the component.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Contracts\View\View|string
|
||||||
|
*/
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('components.alert.border');
|
||||||
|
}
|
||||||
|
}
|
18
app/View/Components/Alert/Danger.php
Normal file
18
app/View/Components/Alert/Danger.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\View\Components\Alert;
|
||||||
|
|
||||||
|
use App\View\Components\Alert as Component;
|
||||||
|
|
||||||
|
class Danger extends Component
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the view / contents that represent the component.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Contracts\View\View|string
|
||||||
|
*/
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('components.alert.danger');
|
||||||
|
}
|
||||||
|
}
|
18
app/View/Components/Alert/Info.php
Normal file
18
app/View/Components/Alert/Info.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\View\Components\Alert;
|
||||||
|
|
||||||
|
use App\View\Components\Alert as Component;
|
||||||
|
|
||||||
|
class Info extends Component
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the view / contents that represent the component.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Contracts\View\View|string
|
||||||
|
*/
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('components.alert.info');
|
||||||
|
}
|
||||||
|
}
|
18
app/View/Components/Alert/Success.php
Normal file
18
app/View/Components/Alert/Success.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\View\Components\Alert;
|
||||||
|
|
||||||
|
use App\View\Components\Alert as Component;
|
||||||
|
|
||||||
|
class Success extends Component
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the view / contents that represent the component.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Contracts\View\View|string
|
||||||
|
*/
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('components.alert.success');
|
||||||
|
}
|
||||||
|
}
|
18
app/View/Components/Alert/Warning.php
Normal file
18
app/View/Components/Alert/Warning.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\View\Components\Alert;
|
||||||
|
|
||||||
|
use App\View\Components\Alert as Component;
|
||||||
|
|
||||||
|
class Warning extends Component
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the view / contents that represent the component.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Contracts\View\View|string
|
||||||
|
*/
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return view('components.alert.warning');
|
||||||
|
}
|
||||||
|
}
|
14
resources/views/components/alert/border.blade.php
Normal file
14
resources/views/components/alert/border.blade.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<x-alert
|
||||||
|
border
|
||||||
|
:rounded="$rounded"
|
||||||
|
|
||||||
|
:color="$color"
|
||||||
|
:icon="$icon"
|
||||||
|
|
||||||
|
:title="$title"
|
||||||
|
:description="$description"
|
||||||
|
:list="$list"
|
||||||
|
|
||||||
|
:actions="$actions"
|
||||||
|
:dismiss="$dismiss"
|
||||||
|
/>
|
14
resources/views/components/alert/danger.blade.php
Normal file
14
resources/views/components/alert/danger.blade.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<x-alert
|
||||||
|
color="red"
|
||||||
|
icon="error"
|
||||||
|
|
||||||
|
:title="$title"
|
||||||
|
:description="$description"
|
||||||
|
:list="$list"
|
||||||
|
|
||||||
|
:rounded="$rounded"
|
||||||
|
:border="$border"
|
||||||
|
|
||||||
|
:actions="$actions"
|
||||||
|
:dismiss="$dismiss"
|
||||||
|
/>
|
14
resources/views/components/alert/info.blade.php
Normal file
14
resources/views/components/alert/info.blade.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<x-alert
|
||||||
|
color="blue"
|
||||||
|
icon="info"
|
||||||
|
|
||||||
|
:title="$title"
|
||||||
|
:description="$description"
|
||||||
|
:list="$list"
|
||||||
|
|
||||||
|
:rounded="$rounded"
|
||||||
|
:border="$border"
|
||||||
|
|
||||||
|
:actions="$actions"
|
||||||
|
:dismiss="$dismiss"
|
||||||
|
/>
|
14
resources/views/components/alert/success.blade.php
Normal file
14
resources/views/components/alert/success.blade.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<x-alert
|
||||||
|
color="green"
|
||||||
|
icon="check_circle"
|
||||||
|
|
||||||
|
:title="$title"
|
||||||
|
:description="$description"
|
||||||
|
:list="$list"
|
||||||
|
|
||||||
|
:rounded="$rounded"
|
||||||
|
:border="$border"
|
||||||
|
|
||||||
|
:actions="$actions"
|
||||||
|
:dismiss="$dismiss"
|
||||||
|
/>
|
14
resources/views/components/alert/warning.blade.php
Normal file
14
resources/views/components/alert/warning.blade.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<x-alert
|
||||||
|
color="yellow"
|
||||||
|
icon="warning"
|
||||||
|
|
||||||
|
:title="$title"
|
||||||
|
:description="$description"
|
||||||
|
:list="$list"
|
||||||
|
|
||||||
|
:rounded="$rounded"
|
||||||
|
:border="$border"
|
||||||
|
|
||||||
|
:actions="$actions"
|
||||||
|
:dismiss="$dismiss"
|
||||||
|
/>
|
Loading…
x
Reference in New Issue
Block a user