@extends('admin.layouts.master') @section('content')
Doctor
@can('doctor-create') @endcan
@if (Session::has('message'))
{{ Session::get('message') }}
@endif @foreach($doctors as $key=>$doctor) @can('doctor-edit') @endcan @can('doctor-delete') @endcan @endforeach
SL Name Degree image Action
{{ $key+1 }} {{ $doctor->name }} {{ $doctor->degree }} Edit {!! Form::open([ 'method' => 'Delete', 'url' => ['/doctor', $doctor->id]]) !!} {!! Form::submit('Delete',['class'=>'btn btn-sm btn-danger']) !!} {!! Form::close() !!}