%PDF- %PDF-
Direktori : /var/www/html/conference/resources/views/admin/authors/ |
Current File : //var/www/html/conference/resources/views/admin/authors/index.blade.php |
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-12 mb30"> <a href="{{url('/admin/authors/new')}}" class="btn btn-success pull-right">Add New</a> </div> </div> <div class="row"> <div class="col-md-12"> <table class="table table-bordered table-striped"> <thead> <tr> <th>Name</th> <th>Job</th> <th>Action</th> </tr> </thead> <tbody> @foreach($authors as $author) <tr> <td> {{$author->name}} {{$author->surname}} </td> <td> {{$author->job}} </td> <td> <a href="{{url('/admin/authors/'.$author->id)}}" class="btn btn-warning">Edit</a> <form action="{{route('admin.authors.delete' , $author->id)}}" method="POST"> {{ csrf_field() }} {{ method_field('DELETE') }} <button type="submit" onclick="return confirm('Are you sure you want to delete {{$author->name}} {{$author->surname}}?')" class="btn btn-danger"> Delete </button> </form> </td> </tr> @endforeach </tbody> </table> <div class="pull-right"> {{ $authors->links() }} </div> </div> </div> </div> @endsection