Bulk action permission fixed and badge style.
This commit is contained in:
		@@ -44,7 +44,13 @@
 | 
			
		||||
                <tbody>
 | 
			
		||||
                    @foreach($currencies as $item)
 | 
			
		||||
                        <tr class="row align-items-center border-top-1">
 | 
			
		||||
                            <td class="col-sm-2 col-md-2 col-lg-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->name) }}</td>
 | 
			
		||||
                            <td class="col-sm-2 col-md-2 col-lg-1 d-none d-sm-block">
 | 
			
		||||
                                @if (user()->can('update-settings-currencies'))
 | 
			
		||||
                                    {{ Form::bulkActionGroup($item->id, $item->name) }}
 | 
			
		||||
                                @else
 | 
			
		||||
                                    {{ Form::bulkActionGroup($item->id, $item->name, ['disabled' => 'disabled']) }}
 | 
			
		||||
                                @endif
 | 
			
		||||
                            </td>
 | 
			
		||||
                            <td class="col-xs-4 col-sm-3 col-md-2 col-lg-4"><a class="col-aka" href="{{ route('currencies.edit', $item->id) }}">{{ $item->name }}</a></td>
 | 
			
		||||
                            <td class="col-md-2  col-lg-2 d-none d-md-block">{{ $item->code }}</td>
 | 
			
		||||
                            <td class="col-sm-2 col-md-2 col-lg-2 d-none d-sm-block">{{ $item->rate }}</td>
 | 
			
		||||
@@ -53,9 +59,9 @@
 | 
			
		||||
                                    {{ Form::enabledGroup($item->id, $item->name, $item->enabled) }}
 | 
			
		||||
                                @else
 | 
			
		||||
                                    @if ($item->enabled)
 | 
			
		||||
                                        <badge rounded type="success">{{ trans('general.enabled') }}</badge>
 | 
			
		||||
                                        <badge rounded type="success" class="mw-60">{{ trans('general.yes') }}</badge>
 | 
			
		||||
                                    @else
 | 
			
		||||
                                        <badge rounded type="danger">{{ trans('general.disabled') }}</badge>
 | 
			
		||||
                                        <badge rounded type="danger" class="mw-60">{{ trans('general.no') }}</badge>
 | 
			
		||||
                                    @endif
 | 
			
		||||
                                @endif
 | 
			
		||||
                            </td>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user