@extends('layouts.default_module') @section('module_name') Books @stop @section('add_btn') {!! Form::open(['method' => 'get', 'route' => ['books.create'], 'files'=>true]) !!} {!! Form::submit('Add', ['class' => 'btn btn-success pull-right']) !!} {!! Form::close() !!} @stop @section('table-properties') width="400px" style="table-layout:fixed;" @endsection @section('table') Name Description Edit Delete @foreach($books as $b) {!! ucwords($b->name ) !!} {!!ucwords($b->description) !!} {!! link_to_action('Admin\BooksController@edit', 'Edit', array($b->id), array('class' => 'badge bg-info')) !!} {!! Form::open(['method' => 'POST', 'route' => ['books.delete', $b->id]]) !!} {!! $b->deleted_at?'Activate':'Delete' !!} {!! Form::close() !!} @endforeach @section('pagination') {!! $books->render() !!}
{!! Form::open(['method' => 'get', 'route' => ['dashboard']]) !!} {!! Form::submit('Cancel', ['class' => 'btn btn-default btn-block btn-lg btn-parsley']) !!} {!! Form::close() !!}
@endsection @stop