%PDF- %PDF-
Direktori : /home/silvzytp/crm-ind-code/resources/views/backend/member/pages/roles/ |
Current File : //home/silvzytp/crm-ind-code/resources/views/backend/member/pages/roles/index.blade.php |
@extends('layouts.backend') @section('title', $siteTitle) @push('styles') <style> .w-20{ width: 28px !important; height: 28px !important; line-height: 21px !important } </style> @endpush @section('content') <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body px-0"> <div class="table-responsive"> <table class="table table-sm table-borderless"> <thead> <th>SL</th> <th>Role Name</th> <th>Slug</th> <th>Permission</th> <th>Created At</th> @permission('app.roles.edit') <th class="text-center">Action</th> @endpermission </thead> <tbody> @forelse ($roles as $role) <tr> <td>{{ $loop->index+1 }}</td> <td>{{ $role->name }}</td> <td>{{ $role->slug }}</td> <td><span class="badge {{ $role->permissions->isEmpty() ? 'badge-danger' : 'badge-primary' }}">{{ $role->permissions->isEmpty() ? 'No Permission Found!' : $role->permissions->count() }}</span></td> <td>{{ date_formats($role->updated_at,'d-M-Y') }}</td> @permission('app.roles.edit') <td width="10%"> <div class="d-flex align-items-center justify-content-center"> <a href="{{ route('app.roles.edit', $role->id) }}" class="btn-style btn-style-edit w-20 "><i class="fa fa-edit"></i></a> </div> </td> @endpermission </tr> @empty @endforelse </tbody> </table> </div> </div> </div> </div> </div> @endsection @push('scripts') @endpush