Completed
Push — master ( 0d3318...8136d6 )
by ARCANEDEV
02:52
created

helpers.php ➔ label_active_icon()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
use Arcanesoft\Core\Helpers\UI\Label;
4
5
/* -----------------------------------------------------------------
6
 |  Labels
7
 | -----------------------------------------------------------------
8
 */
9
10
if ( ! function_exists('label_active_icon')) {
11
    /**
12
     * Generate active icon label.
13
     *
14
     * @param  bool   $active
15
     * @param  array  $options
16
     * @param  bool   $withTooltip
17
     *
18
     * @return \Illuminate\Support\HtmlString
19
     */
20
    function label_active_icon($active, array $options = [], $withTooltip = true) {
21
        return Label::activeIcon($active, $options, $withTooltip);
22
    }
23
}
24
25
if ( ! function_exists('label_active_status')) {
26
    /**
27
     * Generate active status label.
28
     *
29
     * @param  bool   $active
30
     * @param  array  $options
31
     *
32
     * @return \Illuminate\Support\HtmlString
33
     */
34
    function label_active_status($active, array $options = []) {
35
        return Label::activeStatus($active, $options);
36
    }
37
}
38
39
if ( ! function_exists('label_count')) {
40
    /**
41
     * Generate count label.
42
     *
43
     * @param  int|float  $count
44
     * @param  array      $options
45
     *
46
     * @return Illuminate\Support\HtmlString
47
     */
48
    function label_count($count, array $options = []) {
49
        return Label::count($count, $options);
50
    }
51
}
52
53
if ( ! function_exists('label_locked_icon')) {
54
    /**
55
     * Generate locked icon label.
56
     *
57
     * @param  bool   $locked
58
     * @param  array  $options
59
     * @param  bool   $withTooltip
60
     *
61
     * @return \Illuminate\Support\HtmlString
62
     */
63
    function label_locked_icon($locked, array $options = [], $withTooltip = true) {
64
        return Label::lockedIcon($locked, $options, $withTooltip);
65
    }
66
}
67
68
if ( ! function_exists('label_locked_status')) {
69
    /**
70
     * Generate locked status label.
71
     *
72
     * @param  bool   $locked
73
     * @param  array  $options
74
     * @param  bool   $withIcon
75
     *
76
     * @return \Illuminate\Support\HtmlString
77
     */
78
    function label_locked_status($locked, array $options = [], $withIcon = true) {
79
        return Label::lockedStatus($locked, $options, $withIcon);
80
    }
81
}
82
83
if ( ! function_exists('label_trashed_status')) {
84
    /**
85
     * Generate trashed status label.
86
     *
87
     * @param  array  $options
88
     * @param  bool   $withIcon
89
     *
90
     * @return \Illuminate\Support\HtmlString
91
     */
92
    function label_trashed_status(array $options = [], $withIcon = true) {
93
        return Label::trashedStatus($options, $withIcon);
94
    }
95
}
96
97