section classname modified
This commit is contained in:
38
app/View/Components/Form/Section.php
Normal file
38
app/View/Components/Form/Section.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Form;
|
||||
|
||||
use App\Abstracts\View\Component;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class Section extends Component
|
||||
{
|
||||
public $spacingVertical;
|
||||
|
||||
public $spacingHorizontal;
|
||||
|
||||
public $columnNumber;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(
|
||||
string $spacingVertical = 'gap-x-8', string $spacingHorizontal = 'gap-y-6', string $columnNumber = 'sm:grid-cols-6',
|
||||
) {
|
||||
$this->spacingVertical = $spacingVertical;
|
||||
$this->spacingHorizontal = $spacingHorizontal;
|
||||
$columnNumber = $columnNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|string
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('components.form.section.index');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user