Skip to content

Commit

Permalink
Added new blade alert components..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Apr 20, 2023
1 parent 35024b8 commit f457b7d
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/View/Components/Alert/Border.php
@@ -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 changes: 18 additions & 0 deletions app/View/Components/Alert/Danger.php
@@ -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 changes: 18 additions & 0 deletions app/View/Components/Alert/Info.php
@@ -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 changes: 18 additions & 0 deletions app/View/Components/Alert/Success.php
@@ -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 changes: 18 additions & 0 deletions app/View/Components/Alert/Warning.php
@@ -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 changes: 14 additions & 0 deletions resources/views/components/alert/border.blade.php
@@ -0,0 +1,14 @@
<x-alert
border
:rounded="$rounded"

:color="$color"
:icon="$icon"

:title="$title"
:description="$description"
:list="$list"

:actions="$actions"
:dismiss="$dismiss"
/>
14 changes: 14 additions & 0 deletions resources/views/components/alert/danger.blade.php
@@ -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 changes: 14 additions & 0 deletions resources/views/components/alert/info.blade.php
@@ -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 changes: 14 additions & 0 deletions resources/views/components/alert/success.blade.php
@@ -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 changes: 14 additions & 0 deletions resources/views/components/alert/warning.blade.php
@@ -0,0 +1,14 @@
<x-alert
color="yellow"
icon="warning"

:title="$title"
:description="$description"
:list="$list"

:rounded="$rounded"
:border="$border"

:actions="$actions"
:dismiss="$dismiss"
/>

0 comments on commit f457b7d

Please sign in to comment.