@extends('admin.layouts.master') @section('css') @endsection @section('content')
Appointment List
@if (Session::has('message'))
{{ Session::get('message') }}
@endif {!! Form::open(['url' => ['/appointments'], 'method' =>'post', 'class'=>'form-horizontal','enctype'=>"multipart/form-data"]) !!}
{!! Form::submit('Submit', ['class'=> 'btn btn-primary']) !!}
{!! Form::close() !!}
@foreach($appointments as $appointment) @endforeach
Sl No Patients Name Gender Birth Date Mobile Dr. Name App Date Message Action
{{ $slno }} {{ $appointment->patient }} {{ $appointment->gender }} {{ $appointment->birthdate }} {{ $appointment->mobile }} {{ $appointment->doctor }} {{ $appointment->app_date }} {{ $appointment->message }} @can('appointment-delete') {!! Form::open([ 'method' => 'Delete', 'url' => ['/appointments', $appointment->id]]) !!} {!! Form::submit('Delete',['class'=>'btn btn-sm btn-danger']) !!} {!! Form::close() !!} @endcan
@endsection @section('script') @endsection