| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function toArray($request) |
||
| 19 | { |
||
| 20 | return [ |
||
| 21 | 'checkbox' => view('components.datatables.checkbox', [ |
||
| 22 | 'id' => 'branch_' . $this->resource->getKey(), |
||
| 23 | ])->render(), |
||
| 24 | 'name' => $this->resource->name, |
||
| 25 | 'address' => $this->resource->address, |
||
| 26 | 'google_map_url' => view('components.datatables.link', [ |
||
| 27 | 'url' => $this->resource->google_map_url, |
||
| 28 | 'name' => $this->resource->address_latitude . ' | ' . $this->resource->address_longitude, |
||
| 29 | 'is_new_tab' => true, |
||
| 30 | ])->render(), |
||
| 31 | 'action' => view('components.datatables.link', [ |
||
| 32 | 'url' => route('branch.edit', $this->resource), |
||
| 33 | 'name' => __('Details'), |
||
| 34 | 'class' => 'btn btn-primary', |
||
| 35 | ])->render(), |
||
| 36 | ]; |
||
| 39 |