Viewing file: table.blade.php (1.43 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@foreach($datas as $data) <tr> <td> {{ $data->name }} </td> <td> {{ $data->text }} </td> <td>
<div class="dropdown"> <button class="btn btn-{{ $data->status == 1 ? 'success' : 'danger' }} btn-sm btn-rounded dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> {{ $data->status == 1 ? __('Enabled') : __('Disabled') }} </button> <div class="dropdown-menu animated--fade-in" aria-labelledby="dropdownMenuButton"> <a class="dropdown-item" href="{{ route('back.fcategory.status',[$data->id,1]) }}">{{ __('Enable') }}</a> <a class="dropdown-item" href="{{ route('back.fcategory.status',[$data->id,0]) }}">{{ __('Disable') }}</a> </div> </div>
</div>
</td> <td> <div class="action-list"> <a class="btn btn-secondary btn-sm btn-rounded" href="{{ route('back.fcategory.edit',$data->id) }}"> <i class="fas fa-edit"></i> {{ __('Edit') }} </a> <a class="btn btn-danger btn-sm btn-rounded" data-toggle="modal" data-target="#confirm-delete" href="javascript:;" data-href="{{ route('back.fcategory.destroy',$data->id) }}"> <i class="fas fa-trash-alt"></i> </a> </div> </td> </tr> @endforeach
|