@extends('admin.layouts.master') @section('content')
--}} class="col-12">
@csrf

Patient Requisition Form - Covid-19 Testing

Account
@if ($errors->has('organization'))
{{ $errors->first('organization') }}
@endif
Account State
orgState ? 'readonly' : '' }}>
Site
Name*
{{-- --}} @if ($errors->has('fname'))
{{ $errors->first('fname') }}
@endif
{{-- --}} @if ($errors->has('lname'))
{{ $errors->first('lname') }}
@endif
Gender*
user->gender == 'Male' || $user->user->gender == 'M' ? 'checked' : '' }} required>
user->gender == 'Female' || $user->user->gender == 'F' ? 'checked' : '' }}>
user->gender == 'Prefer not to respond' ? 'checked' : '' }}> @if ($errors->has('gender'))
{{ $errors->first('gender') }}
@endif
Ethnicity*
@if ($errors->has('ethnicity'))
{{ $errors->first('ethnicity') }}
@endif
SSN
{{-- @dd($user->user->social_security) --}} @if ($errors->has('ssn'))
{{ $errors->first('ssn') }}
@endif
Date Of Birth *
@if ($errors->has('dob'))
{{ $errors->first('dob') }}
@endif
Email*
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
Phone #*
@if ($errors->has('phone'))
{{ $errors->first('phone') }}
@endif
Home Address*
@if ($errors->has('address_one'))
{{ $errors->first('address_one') }}
@endif
@if ($errors->has('address_two'))
{{ $errors->first('address_two') }}
@endif
@if ($errors->has('city'))
{{ $errors->first('city') }}
@endif
{{--
State*
--}} {{-- --}}
@if ($errors->has('zipcode'))
{{ $errors->first('zipcode') }}
@endif
{{--
Are you 18 or older?*
--}} {{--
Take Photo of Front of Picture ID *Required for all adults 18 and older
@if ($errors->has('frontPic'))
{{ $errors->first('frontPic') }}
@endif
Take Photo of Back of Picture ID *Required for all adults 18 and older
@if ($errors->has('backPic'))
{{ $errors->first('backPic') }}
@endif
--}}
DL/State ID Number
@if ($errors->has('dl_or_state_id'))
{{ $errors->first('dl_or_state_id') }}
@endif
DL/ID Issuing State
@if ($errors->has('dl_or_id_issuing_state'))
{{ $errors->first('dl_or_id_issuing_state') }}
@endif
{{--
Do you have Health Insurance*
--}}
Insurance Type
{{-- --}} @if ($errors->has('insurance_type'))
{{ $errors->first('insurance_type') }}
@endif
Policy Number
@if ($errors->has('policy_id'))
{{ $errors->first('policy_id') }}
@endif
Group Number
@if ($errors->has('group_id'))
{{ $errors->first('group_id') }}
@endif
{{--
Take Photo of Front of Insurance Card
@if ($errors->has('insuranceFrontPic'))
{{ $errors->first('insuranceFrontPic') }}
@endif
--}} {{--
Take Photo of Back of Insurance Card
@if ($errors->has('insuranceBackPic'))
{{ $errors->first('insuranceBackPic') }}
@endif
--}}
Relationship to Patient
user->relationship_to_patient == 'SELF' ? 'checked' : '' }}>
user->relationship_to_patient == 'SPOUSE' ? 'checked' : '' }}>
user->relationship_to_patient == 'CHILD' ? 'checked' : '' }}>
user->relationship_to_patient == 'OTHER' ? 'checked' : '' }}>
@if ($errors->has('relationship_to_patient'))
{{ $errors->first('relationship_to_patient') }}
@endif
@if ($errors->has('buccal_swab'))
{{ $errors->first('buccal_swab') }}
@endif
{{--
@if ($errors->has('nasal_swab'))
{{ $errors->first('nasal_swab') }}
@endif
@if ($errors->has('saliva_swab'))
{{ $errors->first('saliva_swab') }}
@endif
@if ($errors->has('nasopharyngeal_swab'))
{{ $errors->first('nasopharyngeal_swab') }}
@endif
--}}
{{-- @php if ($user->barcode != null) { $barCodeCreated = $user->barcode->created_at->format('Y-m-d h:i'); $barCodeExpire = \Carbon\Carbon::parse($barCodeCreated) ->addDay(2) ->format('Y-m-d h:i'); $today = \Carbon\Carbon::now()->format('Y-m-d h:i'); } else { $barCodeExpire = ''; } @endphp --}}
{{-- @if (!empty($barCodeExpire) && $today >= $barCodeExpire) --}} @if ($user->barcode != null)
@endif {{-- @else --}} {{-- @if ($user->barcode != null)
--}} {{--

You can not change barcode till {{ $barCodeExpire }} UTC (+00:00)

--}} {{--
--}} {{-- @else
@endif --}} {{-- @endif --}}
{{--
--}} {{--
--}}
@if (!$user->documents->isEmpty())

Documents

@foreach ($user->documents as $document) @endforeach
@endif

Previous Barcodes

{{-- @dd($barcodes) --}} @forelse ($barcodes as $barcode) {{-- @php $barCodeCreated = $barcode->created_at->format('Y-m-d h:i'); $barCodeExpire = \Carbon\Carbon::parse($barCodeCreated) ->addDay(2) ->format('Y-m-d h:i'); $today = \Carbon\Carbon::now()->format('Y-m-d h:i'); @endphp --}} {{-- @if ($today >= $barCodeExpire) --}} @if (count($barcodes) > 1) @if (!$loop->last)
@endif @endif @if (count($barcodes) == 1)

No Previous Record Exists

@endif @empty

No Previous Record Exists

@endforelse
@endsection @push('scripts') @endpush