@extends('collector.layouts.master') @section('content')

Patients

Add Patient

Barcode Scanned Today: {{ $todayBarcode }}

Site: {{ $org->name }} |

@forelse ($patients as $patient) {{-- @dd($patient->user->barcodes) --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @empty {{-- --}} @endforelse
Barcode Total Barcode Count Barcode Scanned today First Name Last Name Date Of Birth Phone # Email Status Action
@forelse ($patient->user->barcodes as $patientBarcode) @if ($loop->last) @if ($loop->index - 1 > -1) [{{ $patient->user->barcodes[$loop->index - 1]->barcode }}] @endif [{{ $patientBarcode->barcode }}] @endif @empty @endforelse
@csrf
@if ($errors->has('barcode'))
{{ $errors->first('barcode') }}
@endif
{{ $patient->user->barcodeCount ?? 0 }} {{ $patient->user->scannedToday ?? 0 }} {{ $patient->user->fname }} {{ $patient->user->lname }} {{ \Carbon\Carbon::parse($patient->user->dob)->format('m-d-Y') }} {{ $patient->user->phone }} {{ $patient->user->email }} @if ($patient->user->update_required == true)

Update Required

@else

Updated

@endif
{!! QrCode::size(50)->generate(route('uni.show.patient', ['id' => $patient->patient->id])) !!}{{ $patient->patient->created_at->format('Y-m-d') }} --}} {{-- --}} {{-- --}} {{-- --}} {{--
No Data Available No Data Available No Data Available No Data Available No Data AvailableNo Data Available
{!! $patients->appends($data)->links('pagination::bootstrap-4') !!}
{{-- @foreach ($patients as $patient)