Files
streamline-emr/docker/_streamline-src/resources/views/blood_donations/create.blade.php
T

90 lines
4.2 KiB
PHP
Executable File

@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
<style type="text/css">
.color-bordered-table.success-bordered-table {
border-top: 0px;
}
</style>
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('blood_donations.new_blood_donation') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('blood_donations.dashboard') }}</a></li>
<li><a href="{{ route('blood_donations.index') }}">{{ __('blood_donations.blood_donors') }}</a></li>
<li class="active">{{ __('blood_donations.new_blood_donation') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table">
<thead>
<tr>
<th style="width: 20%">{{ __('blood_donations.blood_group') }}</th>
<th style="width: 20%">{{ __('blood_donations.name') }}</th>
<th style="width: 20%">{{ __('blood_donations.phone') }}</th>
<th style="width: 20%">{{ __('blood_donations.new_donation_date') }}</th>
<th style="width: 20%">{{ __('blood_donations.action') }}</th>
</tr>
</thead>
<tbody>
<tr>
@php $blood_group = \Streamline\Models\BloodGroup::find($donor->blood_group_id); @endphp
<td>{{ $blood_group->name }}</td>
<td>{{ $donor->first_name }} {{ $donor->last_name }}</td>
<td>{{ $donor->phone }}</td>
<td>
{{ Form::open(['method' => 'POST', 'route' => ['blood_donations.store']]) }}
<div class="input-group">
{{ Form::text('donation_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'datepicker-autoclose']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</td>
<td>
<input type="hidden" name="donor_id" value="{{ $donor->id }}">
<button type="submit" class="btn btn-success btn-sm"> {{ __('blood_donations.update') }}</button>
{{ Form::close() }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<!-- Date Picker Plugin JavaScript -->
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
<script>
jQuery('#datepicker-autoclose').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy',
});
</script>
@endpush