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