%PDF- %PDF-
Direktori : /var/www/html/sljcon/resources/views/admin/testimonial/ |
Current File : /var/www/html/sljcon/resources/views/admin/testimonial/all.blade.php |
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th scope="col">#</th> <th scope="col">Description</th> <th scope="col">Full Name</th> <th scope="col">Job Position</th> <th scope="col">Status</th> <th scope="col">Action</th> </tr> </thead> <tbody> @foreach($testimonials as $key=>$item) <tr> <td scope="row">{{++$key}}</td> <td>{{$item->description}}</td> <td>{{$item->fullName}}</td> <td>{{$item->jobPosition}}</td> <td>{{$item->statusName()}}</td> <td> <div class="btn-group" role="group" aria-label="Basic example"> @if($item->isApproved) <a href="{{route('admin.testimonial.draftOrPublish',['id'=>$item->id])}}" type="button" class="btn btn-warning"> <i class="fa fa-edit"> Draft</i> </a> @else <a href="{{route('admin.testimonial.draftOrPublish',['id'=>$item->id])}}" type="button" class="btn btn-success"> <i class="fa fa-check"> Publish</i> </a> @endif <a href="{{route('admin.testimonial.delete',['id'=>$item->id])}}" type="button" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this testimonial?')"> <i class="fa fa-times"> Delete</i> </a> </div> </td> </tr> @endforeach </tbody> </table> {{ $testimonials->links() }} </div> </div> </div> </div> @endsection