Anons79 Mini Shell

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

<div class="card-body p-0">
    <div class="table-responsive">
        <table class="table table-hover table-bordered table-striped default" id="posts-table">
            <thead>
                <tr>
                    <th>Foto</th>
                    <th>Image Chaption</th>
                    <th>Post Category</th>
                    <th>Title</th>
                    <th>Content</th>
                    <th>Slug</th>
                    <th>Blogger</th>
                    {{-- <th>Highlight</th> --}}
                    <th colspan="3">Action</th>
                </tr>
            </thead>
            <tbody>
                @foreach($posts as $post)
                <tr>
                    <td>
                        @if($post->getMedia('default')->isNotEmpty())
                        <img style="width: 120px" src="{{ $post->getFirstMediaUrl('default') }}" alt="media">
                        @else
                        <p>No Image Available</p>
                        @endif
                    </td>
                    <td>{{ $post->image_chaption }}</td>
                    <td>{{ $post->postCategory->title }}</td>
                    <td>{{ $post->title }}</td>
                    <td> <p class="desc-p">{{ $post->content }}</p></td>
                    <td>{{ $post->slug }}</td>
                    <td>{{ $post->user->name }}</td>
                    {{-- <td>{{ $post->highlight }}</td> --}}
                    <td style="width: 120px">
                        <div class='btn-group'>
                            <a href="{{ route('posts.show', [$post->id]) }}" class='btn btn-info btn-sm'>
                                <i class="fa fa-eye"></i>
                            </a>
                            @can('posts.edit')
                            <a href="{{ route('posts.edit', [$post->id]) }}" class='btn btn-warning btn-sm'>
                                <i class="fa fa-edit"></i>
                            </a>
                            @endcan
                            @can('posts.destroy')
                            {!! Form::open(['route' => ['posts.destroy', $post->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' => $posts])
        </div>
    </div>
</div>

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