@extends('layouts.page') @section('title') Patients
{{ $patients->total() }}
@endsection @section('navs') {!! Form::open(['method' => 'get', 'id' => 'idThisForm']) !!} {!! Form::text('full_name', request()->full_name, ['placeholder' => 'Patient Name', 'style' => 'width: 120px']) !!} {!! Form::select('state', ['' => 'State']+AppHelper::options('states'), request()->state, ['class' => empty(request()->state) ? 'blank' : '','style' => 'width: 150px']) !!} {!! Form::select('status', ['' => 'Status']+AppHelper::options('patient_workflows'), request()->status, ['class' => empty(request()->status) ? 'blank' : '','style' => 'width: 120px']) !!} {!! Form::select('priority', ['' => 'Priority']+AppHelper::options('high_priorities'), request()->priority, ['class' => empty(request()->priority) ? 'blank' : '','style' => 'width: 120px']) !!} {{ Form::submit('Get', ['class' => 'btn btn-primary btn-sm', 'style'=>'padding: 0.125em 0.5em; margin: 0em 0.1em']) }} {{ Form::button('Reset', ['class' => 'btn btn-outline-info btn-sm', 'style'=>'padding: 0.125em 0.5em; margin: 0em 0.1em', 'onclick' => 'clearForm(document.getElementById("idThisForm"))']) }} {!! Form::close() !!} @if (!Auth::user()->hasAnyRole(['admin'])) @endif Report @endsection @section('content')
@foreach ($patients as $patient) @endforeach
S.No. {!! $patient->label('patient_id') !!} {!! $patient->label('full_name') !!} {!! $patient->label('status') !!} {!! $patient->label('priority') !!} {!! $patient->label('phone_mobile') !!} {!! $patient->label('zone') !!} {!! $patient->label('state') !!} {!! $patient->label('required_date') !!} {!! $patient->label('assigned_to') !!}
{{ $i++ }} {!! $patient->patient_id ? $patient->patient_id : 'View' !!} {!! $patient->full_name !!} {{ ucfirst($patient->status) }} {{ $patient->priority }} {!! $patient->phone_mobile !!} {!! AppHelper::dropdown($patient->zone, 'zones') !!} {!! AppHelper::dropdown($patient->state, 'states') !!} {!! $patient->required_date !!} {!! $patient->assignee ? $patient->assignee->name : '-' !!}
@endsection