@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('investigations.cancel_ordered_investigations') }}

{{ Form::open(['route' => 'investigations.investigations_to_cancel', 'method' => 'ANY']) }}
{{ Form::label('search_by', __('investigations.date')) }} {{ Form::select('search_by', ['0'=>'Today','1'=>'Custom Date','2'=>'Custom Range'], '', ['class' => 'form-control','id'=>'search_by', 'required']) }}

{{ Form::button(__('investigations.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10', 'id'=>'select_patient']) }}
{{ Form::close() }}
@include('flash::message')
@php $count=1; @endphp @foreach($ordered_investigations as $ordered_inv) @php $urgent_ids = $ordered_inv->urgent_ids; $ordered_ids = explode(",", $ordered_inv->investigation_id); $ordered_investigation_comments_string = ""; $ordered_investigation_comments_string = $ordered_inv->order_comments; @endphp @php $count++; @endphp @endforeach
# {{ __('investigations.date') }} {{ __('investigations.patient_names') }} {{ __('investigations.investigations') }} {{ __('investigations.action') }}
{{ $count }}. {{ streamline_date_time($ordered_inv->created_at) }} {!! insurance_flag($ordered_inv->patient_id) !!} ({{ get_name($ordered_inv->patient_id, 'id', 'number', 'patients') }})
    @for($i=0; $i < count($ordered_ids); $i++)
  1. {{ get_name($ordered_ids[$i], 'id', 'name', 'investigations') }}
  2. @endfor
{{ Form::model($ordered_inv->id ,['method' => 'DELETE', 'route' => ['ordered_investigation.destroy', $ordered_inv->id]]) }} {{ Form::close() }} {{ __('investigations.select_patient') }}
@endsection @push('scripts') @endpush