Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 10
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
multipleSelect
0.00% covered (danger)
0.00%
0 / 10
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 1
2
 render
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\View\Components\form;
4
5use Illuminate\View\Component;
6
7class multipleSelect extends Component
8{
9    public $collection;
10    public $name;
11    public $class;
12    public $index;
13    public $label;
14    public $id;
15    public $selectArr;
16    public $attribute;
17    public $display;
18    /**
19     * Create a new component instance.
20     *
21     * @return void
22     */
23    public function __construct($collection, $name, $class, $index, $label, $selectArr, $id="", $attribute="", $display="")
24    {
25        $this->class = $class;
26        $this->id = $id;
27        $this->collection = $collection;
28        $this->selectArr = $selectArr;
29        $this->index = $index;
30        $this->name = $name;
31        $this->label = $label;
32        $this->attribute = $attribute;
33        $this->display = $display;
34    }
35
36
37    /**
38     * Get the view / contents that represent the component.
39     *
40     * @return \Illuminate\Contracts\View\View|\Closure|string
41     */
42    public function render()
43    {
44        return view('components.form.multiple-select');
45    }
46}