Skip to content

Commit c6ce3e7

Browse files
committed
add info4 to accordion
1 parent 64e0695 commit c6ce3e7

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

resources/views/components/accordions/accordion.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="card">
22
<div class="card-header" id="{{$header}}">
33
<a href="#" class="btn btn-header-link collapsed" data-toggle="collapse" data-target="#{{$collapse}}"
4-
aria-expanded="true" aria-controls="{{$collapse}}">{{$text}}<span class=" info2 pl-5 ml-5">{{$text2}}</span><span class="info3 pl-5 ml-5">{{$text3}}</span><i class="fa fa-angle-up float-right icon"></i></a>
4+
aria-expanded="true" aria-controls="{{$collapse}}">{{$text}}<span class=" info2 pl-5 ml-5">{{$text2}}</span><span class="info3 pl-5 ml-5">{{$text3}}</span><span class="float-right info4 pl-5 ml-5">{{$text4}}</span><i class="fa fa-angle-up float-right icon"></i></a>
55
</div>
66

77
<div id="{{$collapse}}" class="collapse" aria-labelledby="{{$header}}" data-parent="#{{$parent}}">

src/View/Components/Accordion.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Accordion extends Component
1010
public $text;
1111
public $text2;
1212
public $text3;
13+
public $text4;
1314
public $parent;
1415
public $collapse;
1516
public $header;
@@ -18,11 +19,12 @@ class Accordion extends Component
1819
*
1920
* @return void
2021
*/
21-
public function __construct($parent = 'accordion1', $header, $collapse, $text = '', $text2 = '', $text3 = '')
22+
public function __construct($parent = 'accordion1', $header, $collapse, $text = '', $text2 = '', $text3 = '', $text4 = '')
2223
{
2324
$this->text = $text;
2425
$this->text2 = $text2;
2526
$this->text3 = $text3;
27+
$this->text4 = $text4;
2628
$this->parent = $parent;
2729
$this->header = $header;
2830
$this->collapse = $collapse;

src/View/Components/Select.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class Select extends Component
1616
*
1717
* @return void
1818
*/
19-
public function __construct($name, $d = null, $label, $selected = null)
19+
public function __construct($name, $d = null, $label, $selected = 0)
2020
{
2121

2222
$this->name = $name;
2323
$this->d = $d;
2424
$this->label = $label;
25-
$this->selected = $selected;
25+
$this->selected = intval($selected);
2626

2727
}
2828

src/View/Components/Select2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class Select2 extends Component
1616
*
1717
* @return void
1818
*/
19-
public function __construct($name, $d = null, $label, $selected = null)
19+
public function __construct($name, $d = null, $label, $selected = 0)
2020
{
2121

2222
$this->name = $name;
2323
$this->d = $d;
2424
$this->label = $label;
25-
$this->selected = $selected;
25+
$this->selected = intval($selected);
2626

2727
}
2828

0 commit comments

Comments
 (0)