@extends('layouts.default_module') @section('module_name') Parents @stop @section('add_btn') {!! Form::open(['method' => 'get', 'route' => ['parents.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') {{-- {!! Form::open(['method' => 'post', 'route' => ['doctor.search'], 'files'=>true]) !!} @include('admin.doctor.partial.searchfilters') {!!Form::close() !!} --}} {{-- @stop --}} Name Email Phone Number Address Location Edit Delete @foreach($parents as $p) {!! ucwords($p->user->name) !!} {!! ucwords($p->user->email) !!} {!! ucwords($p->user->phone_no) !!} {!! ucwords($p->user->adderss) !!} Map {!! link_to_action('Admin\ParentController@edit', 'Edit', array($p->id), array('class' => 'badge bg-info')) !!} {!! Form::open(['method' => 'POST', 'route' => ['parents.delete', $p->id]]) !!} {!! $p->deleted_at?'Activate':'Delete' !!} {!! Form::close() !!} @endforeach @section('pagination') {!! $parents->render() !!}
{!! Form::open(['method' => 'get', 'route' => ['dashboard']]) !!} {!! Form::submit('Cancel', ['class' => 'btn btn-default btn-block btn-lg btn-parsley']) !!} {!! Form::close() !!}
@endsection @stop