2
2
3
3
@section (' content' )
4
4
5
- <div class =" card" >
6
- <div class =" card-header" >
7
- @include (' laravel-crm::layouts.partials.nav-settings' )
8
- </div >
9
- <div class =" card-body" >
10
- <div class =" tab-content" >
11
- <div class =" tab-pane active" id =" roles" role =" tabpanel" >
12
- <h3 class =" mb-3" > {{ ucfirst (__ (' laravel-crm::lang.custom_field_groups' )) } } @can (' create crm fields' )<span class =" float-right" ><a type =" button" class =" btn btn-primary btn-sm" href =" {{ url (route (' laravel-crm.field-groups.create' )) } }" ><span class =" fa fa-plus" ></span > {{ ucfirst (__ (' laravel-crm::lang.add_custom_field_group' )) } } </a ></span >@endcan </h3 >
13
- <div class =" table-responsive" >
14
- <table class =" table mb-0 card-table table-hover" >
15
- <thead >
16
- <tr >
17
- <th scope =" col" >{{ ucfirst (__ (' laravel-crm::lang.name' )) } } </th >
18
- <th scope =" col" >{{ ucfirst (__ (' laravel-crm::lang.system' )) } } </th >
19
- <th scope =" col" >{{ ucfirst (__ (' laravel-crm::lang.fields' )) } } </th >
20
- <th scope =" col" ></th >
21
- </tr >
22
- </thead >
23
- <tbody >
24
- @foreach ($fieldGroups as $fieldGroup )
25
- <tr class =" has-link" data-url =" {{ url (route (' laravel-crm.field-groups.show' ,$fieldGroup )) } }" >
26
- <td >{{ $fieldGroup -> name } } </td >
27
- <td >{{ ($fieldGroup -> system == 1 ) ? ucfirst (__ (' laravel-crm::lang.yes' )) : ucfirst (__ (' laravel-crm::lang.no' )) } } </td >
28
- <td >{{ $fieldGroup -> fields -> count () } } </td >
29
- <td class =" disable-link text-right" >
30
- @can (' view crm fields' )
31
- <a href =" {{ route (' laravel-crm.field-groups.show' , $fieldGroup ) } }" class =" btn btn-outline-secondary btn-sm" ><span class =" fa fa-eye" aria-hidden =" true" ></span ></a >
32
- @endcan
33
- @can (' edit crm fields' )
34
- <a href =" {{ route (' laravel-crm.field-groups.edit' , $fieldGroup ) } }" class =" btn btn-outline-secondary btn-sm {{ ($fieldGroup -> system == 1 ) ? ' disabled' : null } }" ><span class =" fa fa-edit" aria-hidden =" true" ></span ></a >
35
- @endcan
36
- @can (' delete crm fields' )
37
- <form action =" {{ route (' laravel-crm.field-groups.destroy' ,$fieldGroup ) } }" method =" POST" class =" form-check-inline mr-0 form-delete-button" >
38
- {{ method_field (' DELETE ' ) } }
39
- {{ csrf_field () } }
40
- <button class =" btn btn-danger btn-sm" type =" submit" data-model =" {{ __ (' laravel-crm::lang.field_group' ) } }" {{ ($fieldGroup -> system == 1 ) ? ' disabled' : null } } ><span class =" fa fa-trash-o" aria-hidden =" true" ></span ></button >
41
- </form >
42
- @endcan
43
- </td >
5
+ <div class =" container-fluid pl-0" >
6
+ <div class =" row" >
7
+ <div class =" col col-md-2" >
8
+ <div class =" card" >
9
+ <div class =" card-body py-3 px-2" >
10
+ @include (' laravel-crm::layouts.partials.nav-settings' )
11
+ </div >
12
+ </div >
13
+ </div >
14
+ <div class =" col col-md-10" >
15
+ <div class =" card" >
16
+ <div class =" card-header" >
17
+ <h3 class =" card-title float-left m-0" > {{ ucfirst (__ (' laravel-crm::lang.custom_field_groups' )) } } </h3 >
18
+ @can (' create crm fields' )<span class =" float-right" ><a type =" button" class =" btn btn-primary btn-sm" href =" {{ url (route (' laravel-crm.field-groups.create' )) } }" ><span class =" fa fa-plus" ></span > {{ ucfirst (__ (' laravel-crm::lang.add_custom_field_group' )) } } </a ></span >@endcan
19
+
20
+ </div >
21
+ <div class =" card-body p-0" >
22
+ <div class =" table-responsive" >
23
+ <table class =" table mb-0 card-table table-hover" >
24
+ <thead >
25
+ <tr >
26
+ <th scope =" col" >{{ ucfirst (__ (' laravel-crm::lang.name' )) } } </th >
27
+ <th scope =" col" >{{ ucfirst (__ (' laravel-crm::lang.system' )) } } </th >
28
+ <th scope =" col" >{{ ucfirst (__ (' laravel-crm::lang.fields' )) } } </th >
29
+ <th scope =" col" ></th >
44
30
</tr >
45
- @endforeach
46
- </tbody >
47
- </table >
31
+ </thead >
32
+ <tbody >
33
+ @foreach ($fieldGroups as $fieldGroup )
34
+ <tr class =" has-link" data-url =" {{ url (route (' laravel-crm.field-groups.show' ,$fieldGroup )) } }" >
35
+ <td >{{ $fieldGroup -> name } } </td >
36
+ <td >{{ ($fieldGroup -> system == 1 ) ? ucfirst (__ (' laravel-crm::lang.yes' )) : ucfirst (__ (' laravel-crm::lang.no' )) } } </td >
37
+ <td >{{ $fieldGroup -> fields -> count () } } </td >
38
+ <td class =" disable-link text-right" >
39
+ @can (' view crm fields' )
40
+ <a href =" {{ route (' laravel-crm.field-groups.show' , $fieldGroup ) } }" class =" btn btn-outline-secondary btn-sm" ><span class =" fa fa-eye" aria-hidden =" true" ></span ></a >
41
+ @endcan
42
+ @can (' edit crm fields' )
43
+ <a href =" {{ route (' laravel-crm.field-groups.edit' , $fieldGroup ) } }" class =" btn btn-outline-secondary btn-sm {{ ($fieldGroup -> system == 1 ) ? ' disabled' : null } }" ><span class =" fa fa-edit" aria-hidden =" true" ></span ></a >
44
+ @endcan
45
+ @can (' delete crm fields' )
46
+ <form action =" {{ route (' laravel-crm.field-groups.destroy' ,$fieldGroup ) } }" method =" POST" class =" form-check-inline mr-0 form-delete-button" >
47
+ {{ method_field (' DELETE ' ) } }
48
+ {{ csrf_field () } }
49
+ <button class =" btn btn-danger btn-sm" type =" submit" data-model =" {{ __ (' laravel-crm::lang.field_group' ) } }" {{ ($fieldGroup -> system == 1 ) ? ' disabled' : null } } ><span class =" fa fa-trash-o" aria-hidden =" true" ></span ></button >
50
+ </form >
51
+ @endcan
52
+ </td >
53
+ </tr >
54
+ @endforeach
55
+ </tbody >
56
+ </table >
57
+ </div >
48
58
</div >
59
+ @if ($fieldGroups instanceof \Illuminate\Pagination\ LengthAwarePaginator )
60
+ @component (' laravel-crm::components.card-footer' )
61
+ {{ $fieldGroups -> links () } }
62
+ @endcomponent
63
+ @endif
49
64
</div >
50
65
</div >
51
66
</div >
52
- @if ($fieldGroups instanceof \Illuminate\Pagination\ LengthAwarePaginator )
53
- @component (' laravel-crm::components.card-footer' )
54
- {{ $fieldGroups -> links () } }
55
- @endcomponent
56
- @endif
57
67
</div >
58
68
59
69
@endsection
0 commit comments