@php $count_comments = 0; @endphp

{{ __('Patient Information') }}

{{-- @if (!isset($group) && !isset($_GET['id'])) --}} @if (!isset($group)) @can('create_patient') @endcan @can('edit_patient') @endcan @else @can('create_group') {{ __('Replicate Requisition') }} @endcan @can('view_group') {{ __('Show Requisition') }} @endcan @endif
{{ __('Avatar') }}
{{-- --}}
@php $is_true = isset($req_use_patient) && $req_use_patient == 'true' && isset($req_req); @endphp
{{-- @if (!isset($group) && !isset($_GET['id'])) --}} @if (!isset($group)) @can('create_institute') @endcan @endif
institution)) value="{{ $req_req->institution->nsc_code }}" @endif readonly>
@if (!isset($group)) @can('create_doctor') @endcan @endif
@if (!isset($group)) @can('create_doctor') @endcan @endif
{{-- CYTO BLADE --}} @if (session('branch_id') == 2) @include('admin.requisitions.cyto') @endif {{-- BGL BLADE --}} @if (session('branch_id') == 3) @include('admin.requisitions.bgl') @endif {{-- MRDU SERVICE BLADE --}} @if (session('branch_id') == 4) @include('admin.requisitions.mrdu_service') @endif {{-- MRDU RESEARCH BLADE --}} @if (session('branch_id') == 5) @include('admin.requisitions.mrdu_research') @endif {{-- HEMA BLADE --}} @if (session('branch_id') == 6) @include('admin.requisitions.hema') @endif
{{ __('Tests') }} @if (isset($group)) @if ($group->all_tests->where('cancelled', '===', null)->count() > 0 && $group->done == 0) @can('cancel_test')
@endcan @endif @endif
@isset($group) @else
@endisset
@if (isset($group)) @if ($group->all_tests->where('cancelled', '===', null)->count() > 0 && $group->done == 0) @endif @endif @if (isset($group)) @foreach ($group['all_tests'] as $test) @if ($group->all_tests->where('cancelled', '===', null)->count() > 0 && $group->done == 0) @endif @if ($test->package_id != null) @else @endif @endforeach @endif
whereIn('cancelled', [null, 0])->count() ? 'disabled' : '' }}> {{ __('Test') }} {{ __('Price') }} {{ __('No. of Samples') }} {{ __('Collection Date') }}
@if (!$test->done) @if ($test->cancelled === null) @elseif ($test->cancelled === 0) @else @endif @endif {{ $test['test']['name'] }} @if ($test->package_id != null) {{ $test->group_package($test->id) }} @else {{ $test['price'] }} @endif {{-- {{ $test['sample_no'] }} --}} {{-- {{ $test['sample_no'] }} --}} {{-- --}}
{{ __('Packages') }}
@if (!isset($group))
@endif
@if (isset($group)) @foreach ($group['packages'] as $package) @endforeach @endif
{{ __('Package') }} {{ __('Price') }}
{{ $package['package']['name'] }} {{ $package['price'] }} {{-- --}}
{{--
{{__('Tests')}}
@foreach ($tests as $test) @endforeach
Order # {{__('Test Name')}} {{__('Category')}} {{__('Price')}}
{{$test['category']['name']}} {{formated_price($test['test_price']['price'])}}
{{__('Cultures')}}
@foreach ($cultures as $culture) @endforeach
Order # {{__('Culture Name')}} {{__('Category')}} {{__('Price')}}
{{$culture['category']['name']}} {{formated_price($culture['culture_price']['price'])}}
{{__('Packages')}}
@foreach ($packages as $package) @endforeach
Order # {{__('Package name')}} {{__('Price')}}
{{formated_price($package['package_price']['price'])}}
--}}

{{ __('Receipt') }}

{{ __('Mailing Fee') }} {{ get_currency() }}
{{ __('Duplicate Fee') }} {{ get_currency() }}
{{ __('Subtotal') }} {{ get_currency() }}
{{ __('Total') }} {{ get_currency() }}
{{ __('Paid') }} {{ get_currency() }}
{{ __('Due') }} {{ get_currency() }}
@can('view_payment_section')
{{ __('Payments') }}
{{-- --}}
@php $payments_count = 0; @endphp @if (isset($attachments))
    @foreach ($attachments as $attach)
    @if ($attach['file_name']) @endif
    OR Number
    @endforeach
@endif
@if (isset($group)) @foreach ($group['payments'] as $payment) @php $payments_count++; @endphp @endforeach @endif
@foreach ($payment_methods as $pm) @endforeach
{{ __('Date') }} {{ __('Amount') }} {{ __('Payment method') }} Floating
@if ($payment->payment_method->name == 'Cheque' || $payment->payment_method->name == 'cheque')
@endif
@can('unfloat_payment') floating ? 'checked' : '' }}> @else floating ? 'checked' : '' }} disabled> @endcan {{-- --}}
@endcan
Attachments
@isset($group) @if ($group->general_attachments($group->id, 'general_attachments')) @foreach ($group->general_attachments($group->id, 'general_attachments') as $report) @php $file_arr = explode('/', $report->file_name); $file = end($file_arr); $file_ext_arr = explode('.', $file); $file_ext = end($file_ext_arr); @endphp @endforeach
@if ($file_ext == 'pdf') @elseif($file_ext == 'doc' || $file_ext == 'docx') @elseif($file_ext == 'jpg' || $file_ext == 'jpeg' || $file_ext == 'png') @elseif($file_ext == 'xls' || $file_ext == 'xlsx') @elseif($file_ext == 'csv') @endif {{ $file }}
@endif @endisset
{{ __('Remarks') }}
@if (isset($group)) @foreach ($group['comments'] as $comment) @php $count_comments++; @endphp @endforeach @endif
{{ __('Notes') }}
@can('create_cdm')
@endcan
{{ __('Cancel') }}