Passed
Push — 5.0.0 ( f87479...b41ea8 )
by Fèvre
07:54
created

PermissionController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Xetaravel\Http\Controllers\Admin\Permission;
6
7
use Illuminate\View\View;
8
use Xetaravel\Http\Controllers\Admin\Controller;
9
10
class PermissionController extends Controller
11
{
12
    /**
13
     * Show the search page.
14
     *
15
     * @return View
16
     */
17
    public function index(): View
18
    {
19
        $breadcrumbs = $this->breadcrumbs->addCrumb(
20
            '<svg class="w-5 h-5 mr-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c1.8 0 3.5-.2 5.3-.5c-76.3-55.1-99.8-141-103.1-200.2c-16.1-4.8-33.1-7.3-50.7-7.3l-91.4 0zm308.8-78.3l-120 48C358 277.4 352 286.2 352 296c0 63.3 25.9 168.8 134.8 214.2c5.9 2.5 12.6 2.5 18.5 0C614.1 464.8 640 359.3 640 296c0-9.8-6-18.6-15.1-22.3l-120-48c-5.7-2.3-12.1-2.3-17.8 0zM591.4 312c-3.9 50.7-27.2 116.7-95.4 149.7l0-187.8L591.4 312z"></path></svg>
21
                        Manage Permissions',
22
            route('admin.permission.index')
23
        );
24
25
        return view('Admin::Permission.permission.index', compact('breadcrumbs'));
26
    }
27
}
28