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