Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/resources.4/views/course_kategoris/
Upload File :
Current File : /home/aplikasiposinfo/.trash/resources.4/views/course_kategoris/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-kategoris-table">
            <thead>
            <tr>
                <th>Icon</th>
                <th>Name</th>
                <th>Desc</th>
                <th colspan="3">Action</th>
            </tr>
            </thead>
            <tbody>
            @foreach($courseKategoris as $courseKategori)
                <tr>
                    <td>
                        @if($courseKategori->getMedia()->isNotEmpty())
                            <img style="width: 120px" src="{{ $courseKategori->getFirstMediaUrl() }}" alt="media">
                        @else
                            <p>No Image Available</p>
                        @endif
                    </td>
                    <td>{{ $courseKategori->name }}</td>
                    <td><p class="desc-p">{{ $courseKategori->desc }}</p></td>
                    <td  style="width: 120px">
                        <div class='btn-group'>
                            <a href="{{ route('courseKategoris.show', [$courseKategori->id]) }}"
                               class='btn btn-info btn-sm'>
                                <i class="fa fa-eye"></i>
                            </a>
                            @can('courseKategoris.edit')
                            <a href="{{ route('courseKategoris.edit', [$courseKategori->id]) }}"
                                   class='btn btn-warning btn-sm'>
                                    <i class="fa fa-edit"></i>
                                </a>
                            @endcan
                            @can('courseKategoris.destroy')
                            {!! Form::open(['route' => ['courseKategoris.destroy', $courseKategori->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' => $courseKategoris])
        </div>
    </div>
</div>

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