Added new blade alert components..

This commit is contained in:
Cüneyt Şentürk 2023-04-20 18:28:33 +03:00
parent 35024b8cc2
commit f457b7dcfe
10 changed files with 160 additions and 0 deletions

View 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');
}
}

View 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');
}
}

View 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');
}
}

View 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');
}
}

View 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');
}
}

View File

@ -0,0 +1,14 @@
<x-alert
border
:rounded="$rounded"
:color="$color"
:icon="$icon"
:title="$title"
:description="$description"
:list="$list"
:actions="$actions"
:dismiss="$dismiss"
/>

View 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"
/>

View 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"
/>

View 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"
/>

View 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"
/>