mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
updated streamline-setup v2
This commit is contained in:
Executable
+47
@@ -0,0 +1,47 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('account_types.add_account_type') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('account_types.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('account_types.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('account_types.index') }}"><i class="fa fa-eye"></i> {{ __('account_types.view_account_types') }}</a></li>
|
||||
<li class="active"><i class="fa fa-plus"></i>{{ __('account_types.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'account_types.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('account_types.account_type_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('description', __('account_types.description')) }}
|
||||
{{ Form::text('description', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('account_types.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('account_types.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('account_types.edit_account_type') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('account_types.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('account_types.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('account_types.index') }}"><i class="fa fa-eye"></i> {{ __('account_types.view_account_types') }}</a></li>
|
||||
<li class="active"><i class="fa fa-pencil"></i>{{ __('account_types.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($account_type, ['method' => 'PUT', 'route' => ['account_types.update',$account_type], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('account_types.account_type_name')) }}
|
||||
{{ Form::text('name', $account_type->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('description', __('account_types.description')) }}
|
||||
{{ Form::text('description', $account_type->description, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('account_types.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('account_types.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
Executable
+84
@@ -0,0 +1,84 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('account_types.activate_account_types') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('account_types.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('account_types.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('account_types.index') }}"><i class="fa fa-eye"></i> {{ __('account_types.view_account_types') }}</a></li>
|
||||
<li class="active"><i class="fa fa-trash"></i>{{ __('account_types.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('account_types.account_type_name') }}</th>
|
||||
<th>{{ __('account_types.description') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('account_types.account_type_name') }}</th>
|
||||
<th>{{ __('account_types.description') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($account_types as $account_type)
|
||||
<tr>
|
||||
<td>{{ $account_type->name }}</td>
|
||||
<td>{{ $account_type->description }}</td>
|
||||
<td>
|
||||
{{ Form::model($account_type->id ,['method' => 'POST', 'route' => ['account_types.activate', $account_type->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('account_types.are_you_sure'); ?>')"><i class="fa fa-check"></i> {{ __('account_types.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('account_types.account_types') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('account_types.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('account_types.finance_home') }}</a></li>
|
||||
<li class="active"><i class="fa fa-eye"></i> {{ __('account_types.view_account_types') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('account_types.account_type_name') }}</th>
|
||||
<th>{{ __('account_types.description') }}</th>
|
||||
<!-- <th></th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('account_types.account_type_name') }}</th>
|
||||
<th>{{ __('account_types.description') }}</th>
|
||||
<!-- <th></th> -->
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($account_types as $account_type)
|
||||
<tr>
|
||||
<td>{{ $account_type->name }}</td>
|
||||
<td>{{ $account_type->description }}</td>
|
||||
<!-- NO ONE SHOULD BE ABLE TO EDIT AN ACCOUNT TYPE -->
|
||||
<!-- <td>
|
||||
<a href="/account_types/{{ $account_type->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('account_types.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($account_type->id ,['method' => 'DELETE', 'route' => ['account_types.destroy', $account_type->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('account_types.are_you_sure'); ?>')"><i class="fa fa-trash"></i> {{ __('account_types.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td> -->
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('age_groups.add_age_group') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('age_groups.dashboard') }}</a></li>
|
||||
<li><a href="/age_groups/index">{{ __('age_groups.age_groups') }}</a></li>
|
||||
<li class="active">{{ __('age_groups.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::age_groups.menu')
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
{{ Form::open(['route' => 'age_groups.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('age_groups.age_group')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('from_age', __('age_groups.from_age')) }}
|
||||
{{ Form::number('from_age', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_type', __('age_groups.age_type')) }}
|
||||
{{ Form::select('age_type', ['' => '--select--', 1 => 'Years', 2 => 'Months', 3 => 'Days'], '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('to_age', __('age_groups.to_age')) }}
|
||||
{{ Form::number('to_age', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('age_groups.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('age_groups.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('age_groups.edit_age_group') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('age_groups.dashboard') }}</a></li>
|
||||
<li><a href="/age_groups/index">{{ __('age_groups.age_groups') }}</a></li>
|
||||
<li class="active">{{ __('age_groups.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::age_groups.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
{{ Form::model($age_group, ['method' => 'PUT', 'route' => ['age_groups.update',$age_group], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('age_groups.age_group')) }}
|
||||
{{ Form::text('name', $age_group->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('from_age', __('age_groups.from_age')) }}
|
||||
{{ Form::number('from_age', $age_group->from_age, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_type', __('age_groups.age_type')) }}
|
||||
{{ Form::select('age_type', ['' => '--select--', 1 => 'Years', 2 => 'Months', 3 => 'Days'], $age_group->age_type, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('to_age', __('age_groups.to_age')) }}
|
||||
{{ Form::number('to_age', $age_group->to_age, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('age_groups.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('age_groups.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('age_groups.age_groups') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('age_groups.dashboard') }}</a></li>
|
||||
<li><a href="/age_groups/index">{{ __('age_groups.age_groups') }}</a></li>
|
||||
<li class="active">{{ __('age_groups.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::age_groups.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('age_groups.age_group') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('age_groups.age_group') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($age_groups as $age_group)
|
||||
<tr>
|
||||
<td>{{ $age_group->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($age_group->id ,['method' => 'POST', 'route' => ['age_groups.activate', $age_group->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('age_groups.are_you_sure'); ?>')"><i class="fa fa-check"></i> {{ __('age_groups.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('age_groups.age_groups') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('age_groups.dashboard') }}</a></li>
|
||||
<li><a href="/age_groups/index">{{ __('age_groups.age_groups') }}</a></li>
|
||||
<li class="active">{{ __('age_groups.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::age_groups.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('age_groups.age_group') }}</th>
|
||||
<th>{{ __('age_groups.age_type') }}</th>
|
||||
<th>{{ __('age_groups.from_age') }}</th>
|
||||
<th>{{ __('age_groups.to_age') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('age_groups.age_group') }}</th>
|
||||
<th>{{ __('age_groups.age_type') }}</th>
|
||||
<th>{{ __('age_groups.from_age') }}</th>
|
||||
<th>{{ __('age_groups.to_age') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($age_groups as $age_group)
|
||||
@php $age_types = [1 => 'Years', 2 => 'Months', 3 => 'Days']; @endphp
|
||||
<tr>
|
||||
<td>{{ $age_group->name }}</td>
|
||||
<td>{{ $age_types[$age_group->age_type] ?? '' }}</td>
|
||||
<td>{{ $age_group->from_age }}</td>
|
||||
<td>{{ $age_group->to_age }}</td>
|
||||
<td>
|
||||
<a href="/age_groups/{{ $age_group->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('age_groups.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($age_group->id ,['method' => 'DELETE', 'route' => ['age_groups.destroy', $age_group->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('age_groups.are_you_sure'); ?>')"><i class="fa fa-trash"></i> {{ __('age_groups.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('age_groups.create') }}" class="nav-item btn btn-default ti-plus"> {{ __('age_groups.add_age_group') }}</a>
|
||||
<a href="{{ route('age_groups.index') }}" class="nav-item btn btn-default ti-pencil"> {{ __('age_groups.view_age_groups') }}</a>
|
||||
<a href="{{ route('age_groups.inactive') }}" class="nav-item btn btn-default ti-pencil"> {{ __('age_groups.activate_age_group') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
Executable
+134
@@ -0,0 +1,134 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@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">{{ __('bed_categories.add_bed_categories') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('bed_categories.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('bed_categories.index') }}">{{ __('bed_categories.bed_categories') }}</a></li>
|
||||
<li class="active">{{ __('bed_categories.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::bed_categories.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
{{ Form::open(['route' => 'bed_categories.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('bed_categories.room_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_type', __('bed_categories.type_of_pricing')) }}
|
||||
<br>
|
||||
{{ Form::radio('cost_type', 1, false, ["required", "onclick" => "show('static_div');hide('structured_div');"]) }} {{ __('bed_categories.static_cost') }}
|
||||
{{ Form::radio('cost_type', 2, false, ["required", "onclick" => "show('structured_div');hide('static_div');"]) }} {{ __('bed_categories.structured_cost') }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Income Account</label>
|
||||
{{ Form::select('income_account', $income_accounts, null, ['class'=>'form-control compulsory income_account', 'required']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('available',__('bed_categories.is_bed_category_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('bed_categories.yes') }} {{ Form::radio('available', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('bed_categories.no') }} {{ Form::radio('available', 0, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-1"></div>
|
||||
<div class="col-md-7">
|
||||
<div id="static_div" style="display: none">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_per_night', __('bed_categories.cost_per_night')) }}
|
||||
{{ Form::number('cost_per_night', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="structured_div" style="display: none">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_first_night', __('bed_categories.cost_of_first_night')) }}
|
||||
{{ Form::number('cost_first_night', '', ['class' => 'form-control', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding-top: 10px;">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('bed_categories.from_night')}}</label>
|
||||
<input class="form-control" readonly type="number" value="2" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('bed_categories.to_night')}}</label>
|
||||
<input class="form-control" name="to_night" type="number" placeholder="e.g 11" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_range', __('bed_categories.range_cost')) }}
|
||||
{{ Form::number('cost_range', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_after', __('bed_categories.cost_for_nights_thereafter')) }}
|
||||
{{ Form::number('cost_after', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::button(__('bed_categories.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('bed_categories.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
function show(id) {
|
||||
if (document.getElementById(id).style.display == 'none') {
|
||||
document.getElementById(id).style.display = '';
|
||||
}
|
||||
}
|
||||
function hide(id) {
|
||||
document.getElementById(id).style.display = 'none';
|
||||
}
|
||||
|
||||
$('.income_account').select2({
|
||||
placeholder: "-- select --"
|
||||
});
|
||||
|
||||
$('.select2-selection.select2-selection--single').css('height','calc(3.85rem)');
|
||||
$('.select2-selection.select2-selection--single').css('padding-top','5px');
|
||||
$('.select2-selection.select2-selection--single').css('border-left', '3px solid #F08080');/*add compulsory class*/
|
||||
$('.select2-selection.select2-selection--single.sec_d').css('border-left', '3px solid #aaa');
|
||||
$('.select2-selection__arrow').css('top','3px');
|
||||
</script>
|
||||
@endpush
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
@extends('layouts.main')
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@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">{{ __('bed_categories.edit_bed_category') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('bed_categories.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('bed_categories.index') }}">{{ __('bed_categories.bed_categories') }}</a></li>
|
||||
<li class="active">{{ __('bed_categories.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::bed_categories.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
{{ Form::model($inpatient_bed_category, ['method' => 'PUT', 'route' => ['bed_categories.update',$inpatient_bed_category] , 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('bed_categories.room_name')) }}
|
||||
{{ Form::text('name', $inpatient_bed_category->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_type', __('bed_categories.type_of_pricing')) }}
|
||||
<br>
|
||||
{{ Form::radio('cost_type', 1, false, ["required", "onclick" => "show('static_div');hide('structured_div');"]) }} {{ __('bed_categories.static_cost') }}
|
||||
{{ Form::radio('cost_type', 2, false, ["required", "onclick" => "show('structured_div');hide('static_div');"]) }} {{ __('bed_categories.structured_cost') }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Income Account</label>
|
||||
{{ Form::select('income_account', $chart_of_accounts, $inpatient_bed_category->income_account, ['class'=>'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('', __('bed_categories.is_bed_category_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('bed_categories.yes') }} {{ Form::radio('available', 1, $inpatient_bed_category->available == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('bed_categories.no') }} {{ Form::radio('available', 0, $inpatient_bed_category->available == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div id="static_div">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_per_night', __('bed_categories.cost_per_night')) }}
|
||||
{{ Form::number('cost_per_night', $inpatient_bed_category->cost_per_night, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="structured_div">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_first_night', __('bed_categories.cost_of_first_night')) }}
|
||||
{{ Form::number('cost_first_night', $inpatient_bed_category->cost_first_night, ['class' => 'form-control', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('bed_categories.from_night')}}</label>
|
||||
<input class="form-control" readonly type="number" value="2" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('bed_categories.to_night')}}</label>
|
||||
<input class="form-control" name="to_night" type="number" value="{{ $inpatient_bed_category->to_night }}" placeholder="e.g 11" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_range', __('bed_categories.range_cost')) }}
|
||||
{{ Form::number('cost_range', $inpatient_bed_category->cost_range, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_after', __('bed_categories.cost_for_nights_thereafter')) }}
|
||||
{{ Form::number('cost_after', $inpatient_bed_category->cost_after, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('bed_categories.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('bed_categories.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
let current_bed_category = <?php echo $inpatient_bed_category->cost_type; ?>
|
||||
|
||||
if(current_bed_category == 1){
|
||||
$('#static_div').show();
|
||||
$('#structured_div').hide();
|
||||
} else {
|
||||
$('#static_div').hide();
|
||||
$('#structured_div').show();
|
||||
}
|
||||
|
||||
function show(id) {
|
||||
if (document.getElementById(id).style.display == 'none') {
|
||||
document.getElementById(id).style.display = '';
|
||||
}
|
||||
}
|
||||
function hide(id) {
|
||||
document.getElementById(id).style.display = 'none';
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+95
@@ -0,0 +1,95 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('bed_categories.inactive_bed_categories') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('bed_categories.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('bed_categories.create') }}">{{ __('bed_categories.add_bed_categories') }}</a></li>
|
||||
<li class="active">{{ __('bed_categories.inactive_bed_categories') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::bed_categories.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">Export data to Copy, CSV, Excel, PDF & Print</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('bed_categories.bed_category_name') }}</th>
|
||||
<th>{{ __('bed_categories.type_of_pricing') }}</th>
|
||||
<th>{{ __('bed_categories.per_night') }}</th>
|
||||
<th>{{ __('bed_categories.first_night') }}</th>
|
||||
<th>{{ __('bed_categories.range_of_nights') }}</th>
|
||||
<th>{{ __('bed_categories.cost_for_range') }}</th>
|
||||
<th>{{ __('bed_categories.cost_there_after') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1; @endphp
|
||||
@foreach($bed_categories as $bed_category)
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $bed_category->name }}</td>
|
||||
<td>{{ $bed_category->cost_type == 1 ? 'Static Cost' : 'Structured cost' }}</td>
|
||||
<td>{{ !is_null($bed_category->cost_per_night) ? ugandan_shillings($bed_category->cost_per_night) : 'N/A' }}</td>
|
||||
<td>{{ !is_null($bed_category->cost_first_night) ? ugandan_shillings($bed_category->cost_first_night) : 'N/A' }}</td>
|
||||
<td>{{ $bed_category->to_night }}</td>
|
||||
<td>{{ !is_null($bed_category->cost_range) ? ugandan_shillings($bed_category->cost_range) : 'N/A'}}</td>
|
||||
<td>{{ !is_null($bed_category->cost_after) ? ugandan_shillings($bed_category->cost_after) : 'N/A' }}</td>
|
||||
<td>
|
||||
<a href="/bed_categories/{{ $bed_category->id }}/activate/" class="btn btn-warning btn-sm">{{ __('bed_categories.activate') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+114
@@ -0,0 +1,114 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('bed_categories.inpatient_bed_categories') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('bed_categories.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('bed_categories.create') }}">{{ __('bed_categories.add_bed_categories') }}</a></li>
|
||||
<li class="active">{{ __('bed_categories.inpatient_bed_categories') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::bed_categories.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('bed_categories.export_data_to_csv_excel_print') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('bed_categories.bed_category_name') }}</th>
|
||||
<th>{{ __('bed_categories.type_of_pricing') }}</th>
|
||||
<th>{{ __('bed_categories.per_night') }}</th>
|
||||
<th>{{ __('bed_categories.first_night') }}</th>
|
||||
<th>{{ __('bed_categories.range_of_nights') }}</th>
|
||||
<th>{{ __('bed_categories.cost_for_range') }}</th>
|
||||
<th>{{ __('bed_categories.cost_there_after') }}</th>
|
||||
<th>Income Account</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1; @endphp
|
||||
@foreach($bed_categories as $bed_category)
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $bed_category->name }}</td>
|
||||
<td>{{ $bed_category->cost_type == 1 ? 'Static Cost' : 'Structured cost' }}</td>
|
||||
<td>{{ !is_null($bed_category->cost_per_night) ? ugandan_shillings($bed_category->cost_per_night) : 'N/A' }}</td>
|
||||
<td>{{ !is_null($bed_category->cost_first_night) ? ugandan_shillings($bed_category->cost_first_night) : 'N/A' }}</td>
|
||||
<td>
|
||||
@if(!is_null($bed_category->to_night))
|
||||
2 - {{ $bed_category->to_night }}
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ !is_null($bed_category->cost_range) ? ugandan_shillings($bed_category->cost_range) : 'N/A'}}</td>
|
||||
<td>{{ !is_null($bed_category->cost_after) ? ugandan_shillings($bed_category->cost_after) : 'N/A' }}</td>
|
||||
<td>{{ get_name($bed_category->income_account, "id", "name", "chart_of_accounts" ) }}</td>
|
||||
<td>
|
||||
<a href="/bed_categories/{{ $bed_category->id }}/edit/" class="btn btn-info btn-sm"><i class="fa fa-pencil"></i> {{ __('bed_categories.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
@if (!in_array($bed_category->id, $bed_data))
|
||||
{{ Form::model($bed_category->id, ['method' => 'DELETE', 'route' => ['bed_categories.destroy', $bed_category->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('<?php echo __('bed_categories.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('bed_categories.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
@else
|
||||
<b class="text-success">Bed Category in use</b>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength: 100,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('bed_categories.create') }}" class="nav-item btn btn-default ti-plus"> Add bed category</a>
|
||||
<a href="{{ route('bed_categories.index') }}" class="nav-item btn btn-default ti-pencil"> View bed category</a>
|
||||
<a href="{{ route('bed_categories.inactive') }}" class="nav-item btn btn-default ti-pencil"> Activate bed category</a>
|
||||
</div>
|
||||
</div>
|
||||
Executable
+129
@@ -0,0 +1,129 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@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">{{ __('chart_of_accounts.add_chart_of_account') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('chart_of_accounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('chart_of_accounts.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('chart_of_accounts.index') }}"><i class="fa fa-eye"></i> {{ __('chart_of_accounts.view_chart_of_accounts') }}</a></li>
|
||||
<li class="active"><i class="fa fa-plus"></i> {{ __('chart_of_accounts.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('clinical_data::chart_of_accounts.menu')
|
||||
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'chart_of_accounts.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('chart_of_accounts.chart_of_account_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('type', __('chart_of_accounts.type')) }}
|
||||
{{ Form::select('type',$account_types,[],['class' => 'form-control', 'id'=>'account_types']) }}
|
||||
</div>
|
||||
|
||||
<div class="row" id="opening_balance_div" style="display:none;">
|
||||
<div class="col-md-8">
|
||||
<div class="form-group">
|
||||
{{ Form::label('opening_balance', __('chart_of_accounts.opening_balance')) }}
|
||||
{{ Form::number('opening_balance', 0, ['class' => 'form-control', 'step' => 0.01, 'id' => 'opening_balance']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('opening_balance_date', __('chart_of_accounts.date')) }}
|
||||
{{ Form::text('opening_balance_date', \Carbon\Carbon::today()->format('d-m-Y'), ['class' => 'form-control', 'readonly', 'id'=>'opening_balance_date']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- <div class="row" id="current_balance_div" style="display:none;">
|
||||
<div class="col-md-8">
|
||||
<div class="form-group">
|
||||
{{ Form::label('current_balance', __('chart_of_accounts.current_balance')) }}
|
||||
{{ Form::number('current_balance', 0, ['class' => 'form-control', 'step' => 0.01]) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('current_balance_date', __('chart_of_accounts.date')) }}
|
||||
{{ Form::text('current_balance_date', \Carbon\Carbon::today()->format('d-m-Y'), ['class' => 'form-control', 'readonly', 'id'=>'current_balance_date']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('description', __('chart_of_accounts.description')) }}
|
||||
{{ Form::text('description', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('sub_account_of',__('chart_of_accounts.sub_account_of')) }}
|
||||
{{ Form::select('sub_account_of',$chart_of_accounts_list,'',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
@if(Auth::user()->can('create-core-chart-of-account'))
|
||||
<div class="form-group">
|
||||
{{ Form::label('core','System core chart of account') }}
|
||||
<br>
|
||||
{{ Form::radio('core', 1, false, ["required"]) }} Yes
|
||||
{{ Form::radio('core', 0, false, ["required"]) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('add-chart-of-account-slug'))
|
||||
<div class="form-group">
|
||||
{{ Form::label('slug',__('chart_of_accounts.slug'). ' (Optional)') }}
|
||||
{{ Form::select('slug',$slugs,'',['class' => 'form-control']) }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ Form::button(__('chart_of_accounts.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('chart_of_accounts.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script>
|
||||
$('#account_types').change(function () {
|
||||
let type = this.value;
|
||||
if(type === "4"){
|
||||
$('#opening_balance_div').show();
|
||||
}else{
|
||||
$('#opening_balance_div').hide();
|
||||
}
|
||||
});
|
||||
$('#opening_balance_date, #current_balance_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+94
@@ -0,0 +1,94 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('chart_of_accounts.edit_chart_of_account') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('chart_of_accounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('chart_of_accounts.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('chart_of_accounts.index') }}"><i class="fa fa-eye"></i> {{ __('chart_of_accounts.view_chart_of_accounts') }}</a></li>
|
||||
<li class="active"><i class="fa fa-pencil"></i> {{ __('chart_of_accounts.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('clinical_data::chart_of_accounts.menu')
|
||||
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($chart_of_account, ['method' => 'PUT', 'route' => ['chart_of_accounts.update',$chart_of_account->id], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('chart_of_accounts.chart_of_account_name')) }}
|
||||
{{ Form::text('name', $chart_of_account->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
@if($chart_of_account->core == 0)
|
||||
<div class="form-group">
|
||||
{{ Form::label('type', __('chart_of_accounts.type')) }}
|
||||
{{ Form::select('type', $account_types, $chart_of_account->type, ['class' => 'form-control','id'=>'account_types']) }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('description', __('chart_of_accounts.description')) }}
|
||||
{{ Form::text('description', $chart_of_account->description, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
@if($chart_of_account->core == 0)
|
||||
<div class="form-group">
|
||||
{{ Form::label('sub_account_of',__('chart_of_accounts.sub_account_of')) }}
|
||||
{{ Form::select('sub_account_of', $chart_of_accounts_list, $chart_of_account->sub_account_of, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('balance', __('chart_of_accounts.opening_balance')) }}
|
||||
@if($chart_of_account->core == 1)
|
||||
{{ Form::number('balance', $chart_of_account->balance, ['class' => 'form-control', 'step' => 0.01, 'readonly']) }}
|
||||
@else
|
||||
{{ Form::number('balance', $chart_of_account->balance, ['class' => 'form-control', 'step' => 0.01]) }}
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if(Auth::user()->can('create-core-chart-of-account') && $chart_of_account->core == 0)
|
||||
<div class="form-group">
|
||||
{{ Form::label('core',__('chart_of_accounts.system_core_account')) }}
|
||||
<br>
|
||||
{{ Form::radio('core', '1', $chart_of_account->core == "1" ? 1 : 0) }} Yes
|
||||
{{ Form::radio('core','0', $chart_of_account->core == "0" ? 1 : 0) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('add-chart-of-account-slug') && $chart_of_account->core == 0)
|
||||
<div class="form-group">
|
||||
{{ Form::label('slug',__('chart_of_accounts.slug'). ' (Optional)') }}
|
||||
{{ Form::select('slug',$slugs,$chart_of_account->slug,['class' => 'form-control']) }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ Form::button(__('chart_of_accounts.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('chart_of_accounts.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
@endpush
|
||||
Executable
+98
@@ -0,0 +1,98 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('chart_of_accounts.chart_of_accounts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('chart_of_accounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('chart_of_accounts.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('chart_of_accounts.index') }}"><i class="fa fa-eye"></i> {{ __('chart_of_accounts.view_chart_of_accounts') }}</a></li>
|
||||
<li class="active"><i class="fa fa-trash"></i>{{ __('chart_of_accounts.inactive') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('clinical_data::chart_of_accounts.menu')
|
||||
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('chart_of_accounts.export_data_to_copy_csv_pdf_print') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('chart_of_accounts.chart_of_account_name') }}</th>
|
||||
<th>{{ __('chart_of_accounts.type') }}</th>
|
||||
<th>{{ __('chart_of_accounts.description') }}</th>
|
||||
<th>{{ __('chart_of_accounts.sub_account_of') }}</th>
|
||||
<th>{{ __('chart_of_accounts.balance') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('chart_of_accounts.chart_of_account_name') }}</th>
|
||||
<th>{{ __('chart_of_accounts.type') }}</th>
|
||||
<th>{{ __('chart_of_accounts.description') }}</th>
|
||||
<th>{{ __('chart_of_accounts.sub_account_of') }}</th>
|
||||
<th>{{ __('chart_of_accounts.balance') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($chart_of_accounts as $chart_of_account)
|
||||
<tr>
|
||||
<td>{{ $chart_of_account->name }}</td>
|
||||
<td>{{ $account_types[$chart_of_account->type]}}</td>
|
||||
<td>{{ $chart_of_account->description }}</td>
|
||||
{{-- <td>{{ $chart_of_accounts_list[$chart_of_account->sub_account_of] }}</td>--}}
|
||||
<td>{{ get_name($chart_of_account->sub_account_of, 'id', 'name', 'chart_of_accounts') }}</td>
|
||||
<td>{{ ugandan_shillings($chart_of_account->balance) }}</td>
|
||||
<td>
|
||||
{{ Form::model($chart_of_account->id ,['method' => 'POST', 'route' => ['chart_of_accounts.activate', $chart_of_account->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('chart_of_accounts.are_you_sure')?>)"><i class="fa fa-check"></i> {{ __('chart_of_accounts.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+162
@@ -0,0 +1,162 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('chart_of_accounts.chart_of_accounts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('chart_of_accounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('chart_of_accounts.finance_home') }}</a></li>
|
||||
<li class="active"><i class="fa fa-eye"></i> {{ __('chart_of_accounts.view_chart_of_accounts') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('clinical_data::chart_of_accounts.menu')
|
||||
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('chart_of_accounts.export_data_to_copy_csv_pdf_print') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('chart_of_accounts.chart_of_account_name') }}</th>
|
||||
<th>{{ __('chart_of_accounts.type') }}</th>
|
||||
<th>{{ __('chart_of_accounts.description') }}</th>
|
||||
<th>{{ __('chart_of_accounts.sub_account_of') }}</th>
|
||||
<th>{{ __('chart_of_accounts.balance') }}</th>
|
||||
<th>{{ __('chart_of_accounts.created_by') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('chart_of_accounts.chart_of_account_name') }}</th>
|
||||
<th>{{ __('chart_of_accounts.type') }}</th>
|
||||
<th>{{ __('chart_of_accounts.description') }}</th>
|
||||
<th>{{ __('chart_of_accounts.sub_account_of') }}</th>
|
||||
<th>{{ __('chart_of_accounts.balance') }}</th>
|
||||
<th>{{ __('chart_of_accounts.created_by') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@if(count($chart_of_accounts)>0)
|
||||
@foreach($chart_of_accounts as $chart_of_account)
|
||||
<tr>
|
||||
<td>{{ $chart_of_account->name }}</td>
|
||||
<td>
|
||||
@php
|
||||
|
||||
$types = explode(',',$chart_of_account->type);
|
||||
for($i = 0; $i < count($types); $i++){
|
||||
echo get_name($types[$i], 'id', 'name', 'account_types')."<br/>";
|
||||
}
|
||||
@endphp
|
||||
</td>
|
||||
{{--<td>{{ isset($account_types[$chart_of_account->type]) ? $account_types[$chart_of_account->type] : "" }}</td>--}}
|
||||
<td>{{ $chart_of_account->description }}</td>
|
||||
<td>{{ isset($chart_of_accounts_list[$chart_of_account->sub_account_of])? $chart_of_accounts_list[$chart_of_account->sub_account_of] : "" }}</td>
|
||||
<td>
|
||||
@if(!in_array($chart_of_account->type, [1, 2, 4, 7]))
|
||||
{{ ugandan_shillings($chart_of_account->balance) }}
|
||||
@endif
|
||||
|
||||
@if($chart_of_account->type == 4)
|
||||
@php
|
||||
$record = get_latest_banking_record($chart_of_account->id, getTodayCarbon()->toDateString());
|
||||
@endphp
|
||||
{{ ugandan_shillings(is_null($record) ? 0 : $record->account_balance) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
{{ get_full_name($chart_of_account->created_by, "id", "first_name", "last_name", "users") }}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/chart_of_accounts/{{ $chart_of_account->id }}/edit/" class="btn btn-warning btn-sm btn-rounded"><i class="fa fa-pencil"></i> {{ __('chart_of_accounts.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
@if($chart_of_account->core == 0)
|
||||
{{ Form::model($chart_of_account->id ,['method' => 'DELETE', 'route' => ['chart_of_accounts.destroy', $chart_of_account->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-sm btn-rounded" onclick="return confirm('<?php echo __('chart_of_accounts.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('chart_of_accounts.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($chart_of_account->type == 1)
|
||||
@php
|
||||
$search_type = 'custom_date_range';
|
||||
$end_of_month = \Carbon\Carbon::today()->endOfMonth()->toDateString();
|
||||
$start_of_month = \Carbon\Carbon::today()->startOfMonth()->toDateString();
|
||||
$string = $search_type.",".$start_of_month.",".$end_of_month.",".'incomes'.",".$chart_of_account->id.","."6";
|
||||
@endphp
|
||||
<a href="{{ route('finance_reports.income_detail', $string.","."accrual" ) }}" target="_blank" class="btn btn-sm btn-rounded btn-primary"><i class="fa fa-list"></i> {{ __('chart_of_accounts.report') }}</a>
|
||||
@endif
|
||||
@if($chart_of_account->type == 2)
|
||||
@php
|
||||
$search_type = 'custom_date_range';
|
||||
$end_of_month = \Carbon\Carbon::today()->endOfMonth()->toDateString();
|
||||
$start_of_month = \Carbon\Carbon::today()->startOfMonth()->toDateString();
|
||||
$string = $search_type.",".$start_of_month.",".$end_of_month.",".'payments'.",".$chart_of_account->id;
|
||||
@endphp
|
||||
<a class="btn btn-sm btn-rounded btn-primary" target="_blank" href="{{ route('finance_reports.expense_detail', $string ) }}"><i class="fa fa-list"></i> {{ __('chart_of_accounts.report') }}</a>
|
||||
@endif
|
||||
@if($chart_of_account->type == 7)
|
||||
@php
|
||||
$search_type = 'custom_date_range';
|
||||
$end_of_month = \Carbon\Carbon::today()->endOfMonth()->toDateString();
|
||||
$start_of_month = \Carbon\Carbon::today()->startOfMonth()->toDateString();
|
||||
$string = $search_type.",".$start_of_month.",".$end_of_month.",".'cog'.",".$chart_of_account->id;
|
||||
@endphp
|
||||
<a class="btn btn-sm btn-rounded btn-primary" target="_blank" href="{{ route('finance_reports.cost_of_sales_detail', $string ) }}"><i class="fa fa-list"></i>
|
||||
{{ __('chart_of_accounts.report') }}</a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
],
|
||||
pageLength : 50,
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('chart_of_accounts.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('chart_of_accounts.add_chart_of_account') }}</span></a>
|
||||
<a href="{{ route('chart_of_accounts.index') }}" class="nav-item btn btn-info"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('chart_of_accounts.view_chart_of_accounts') }}</span></a>
|
||||
<a href="{{ route('chart_of_accounts.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('chart_of_accounts.activate_chart_of_accounts') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+1172
File diff suppressed because it is too large
Load Diff
+136
@@ -0,0 +1,136 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@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">{{ __('clinics.add_clinic') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('clinics.dashboard') }}</a></li>
|
||||
<li><a href="/clinics/index">{{ __('clinics.clinics') }}</a></li>
|
||||
<li class="active">{{ __('clinics.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::clinics.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
@if (session()->has('streamline_setup'))
|
||||
<h3><font color="blue">{{ __('clinics.streamline_setup') }}</font></h3>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
{{ Form::open(['route' => 'clinics.store']) }}
|
||||
<div class="form-group" id="optionsList">
|
||||
{{ Form::label('name', __('clinics.clinic_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<a href="#" id="addOption">{{ __('clinics.add_another') }}</a><br><br>
|
||||
</div>
|
||||
<div class="col-sm-4" style="background: #eceeef;">
|
||||
<h4>{{ __('clinics.select_any_from_list') }}</h4>
|
||||
@for($i=0; $i < count($clinics); $i++)
|
||||
<div class="form-group">
|
||||
{{ Form::checkbox('selected_clinics[]', $i, false) }} {{ $clinics[$i]["name"] }}
|
||||
</div>
|
||||
@endfor
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('available',__('clinics.is_clinic_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('clinics.yes') }} {{ Form::radio('available', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('clinics.no') }} {{ Form::radio('available', 0, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::button(__('clinics.next'), ['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10 next']) }}
|
||||
{{ Form::button(__('clinics.skip'),['type'=>'submit','name' => 'skip', 'class'=>'btn btn-default waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::close() }}
|
||||
@else
|
||||
{{ Form::open(['route' => 'clinics.store', 'data-toggle' => 'validator']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('clinics.clinic_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('clinic_type', __('clinics.clinic_type')) }}
|
||||
{{ Form::select('clinic_type', $clinic_types, 'general', ['class' => 'form-control compulsory', 'required', 'id' => 'clinic_type']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('available',__('clinics.is_clinic_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('clinics.yes') }} {{ Form::radio('available', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('clinics.no') }} {{ Form::radio('available', 0, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('clinics.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10 submit-btn']) }}
|
||||
{{ Form::button(__('clinics.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
{{ Form::close() }}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$('#clinic_type').select2();
|
||||
|
||||
$(function() {
|
||||
$("#addOption").click(function(e) {
|
||||
e.preventDefault();
|
||||
$("#optionsList").append("<br>");
|
||||
$("#optionsList").append("<input type='text' name='other_clinics[]' placeholder='' class='form-control' />");
|
||||
});
|
||||
|
||||
$(".next,.submit-btn").click(function (e) { // make sure that all compulsory fields have been filled out
|
||||
var empty_compulsory_fields = [];
|
||||
$(".compulsory").each(function () {
|
||||
if ($(this).val() == "") {
|
||||
var textname = $(this).attr('name');
|
||||
$(this).focus();
|
||||
empty_compulsory_fields.push(textname);
|
||||
$(this).css('border','1px solid #F08080');
|
||||
}
|
||||
});
|
||||
/* check if the array containing empty compulsory fields is not empty then return false */
|
||||
if (empty_compulsory_fields.length != 0) {
|
||||
alert("<?php echo __('clinics.fill_all_fields'); ?>");
|
||||
console.log(empty_compulsory_fields);
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@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">{{ __('clinics.edit_clinic') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('clinics.dashboard') }}</a></li>
|
||||
<li><a href="/clinics/index">{{ __('clinics.clinics') }}</a></li>
|
||||
<li class="active">{{ __('clinics.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::clinics.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
{{ Form::model($clinic, ['method' => 'PUT', 'route' => ['clinics.update',$clinic], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('clinics.clinic_name')) }}
|
||||
{{ Form::text('name', $clinic->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('clinic_type', __('clinics.clinic_type')) }}
|
||||
{{ Form::select('clinic_type', $clinic_types, $clinic->clinic_type, ['class' => 'form-control compulsory', 'required', 'id' => 'clinic_type']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('', __('clinics.is_clinic_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('clinics.yes') }} {{ Form::radio('available', 1, $clinic->available == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('clinics.no') }} {{ Form::radio('available', 0, $clinic->available == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('clinics.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('clinics.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#clinic_type').select2();
|
||||
</script>
|
||||
@endpush
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('clinics.activate_clinics') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('clinics.dashboard') }}</a></li>
|
||||
<li><a href="/clinics/index">{{ __('clinics.clinics') }}</a></li>
|
||||
<li class="active">{{ __('clinics.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::clinics.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('clinics.clinic_name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('clinics.clinic_name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($clinics as $clinic)
|
||||
<tr>
|
||||
<td>{{ $clinic->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($clinic->id ,['method' => 'POST', 'route' => ['clinics.activate', $clinic->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('clinics.are_you_sure');?>')"><i class="fa fa-check"></i> {{ __('clinics.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('clinics.clinics') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('clinics.dashboard') }}</a></li>
|
||||
<li><a href="/clinics/">{{ __('clinics.clinics') }}</a></li>
|
||||
<li class="active">{{ __('clinics.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::clinics.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('clinics.clinic_name') }}</th>
|
||||
<th>{{ __('clinics.clinic_type') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('clinics.clinic_name') }}</th>
|
||||
<th>{{ __('clinics.clinic_type') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($clinics as $clinic)
|
||||
<tr>
|
||||
<td>{{ $clinic->name }}</td>
|
||||
<td>{{ $clinic_types[$clinic->slug] }}</td>
|
||||
<td>
|
||||
<a href="/clinics/{{ $clinic->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('clinics.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
@if (empty($clinic_ids[$clinic->id]))
|
||||
{{ Form::model($clinic->id ,['method' => 'DELETE', 'route' => ['clinics.destroy', $clinic->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('clinics.are_you_sure');?>')"><i class="fa fa-trash"></i> {{ __('clinics.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
@else
|
||||
<b class="text-success">Clinic in use</b>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', {
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [0]
|
||||
},
|
||||
title: 'Clinics'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
exportOptions: {
|
||||
columns: [0]
|
||||
},
|
||||
title: 'Clinics'
|
||||
},
|
||||
{
|
||||
extend: 'excel',
|
||||
exportOptions: {
|
||||
columns: [0]
|
||||
},
|
||||
title: 'Clinics'
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('clinics.create') }}" class="nav-item btn btn-default ti-plus"> {{ __('clinics.add_clinic') }}</a>
|
||||
<a href="{{ route('clinics.index') }}" class="nav-item btn btn-default ti-pencil"> {{ __('clinics.view_clinics') }}</a>
|
||||
<a href="{{ route('clinics.inactive') }}" class="nav-item btn btn-default ti-pencil"> {{ __('clinics.activate_clinics') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Add Drug Route')
|
||||
|
||||
@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">New Company</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="/companies/">Companies</a></li>
|
||||
<li class="active">Register</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::companies.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'companies.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', 'Company Name') }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('contact', 'Contact') }}
|
||||
{{ Form::text('contact', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('identifier', 'Identifier') }}
|
||||
{{ Form::text('identifier', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Edit Drug Route')
|
||||
|
||||
@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">Edit Company</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="/companies/">Companies</a></li>
|
||||
<li class="active">Edit</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::companies.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::model($company, ['method' => 'PUT', 'route' => ['companies.update',$company]]) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', 'Company Name') }}
|
||||
{{ Form::text('name', $company->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('contact', 'Contact') }}
|
||||
{{ Form::text('contact', $company->contact, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('identifier', 'Identifier') }}
|
||||
{{ Form::text('identifier', $company->slug, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">Inactive Companies</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="/companies/">Companies</a></li>
|
||||
<li class="active">Activate</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::companies.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Company</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($companies as $route)
|
||||
<tr>
|
||||
<td>{{ $route->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($route->id ,['method' => 'POST', 'route' => ['companies.activate', $route->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> Activate</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">Companies</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">Companies</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::companies.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Company Name</th>
|
||||
<th>Contact</th>
|
||||
<th>Identifier</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($companies as $route)
|
||||
<tr>
|
||||
<td>{{ $route->name }}</td>
|
||||
<td>{{ $route->contact }}</td>
|
||||
<td>{{ $route->slug }}</td>
|
||||
<td>
|
||||
<a href="/companies/{{ $route->id }}/edit/" class="btn btn-warning btn-rounded"><i class="fa fa-pencil"></i> Edit</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($route->id ,['method' => 'DELETE', 'route' => ['companies.destroy', $route->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-rounded" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> Delete</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('companies.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">Add Company</span></a>
|
||||
<a href="{{ route('companies.index') }}" class="nav-item btn btn-info"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">View Companies</span></a>
|
||||
<a href="{{ route('companies.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">Activate Companies</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('counties.add_county') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('counties.dashboard') }}</a></li>
|
||||
<li><a href="/counties/index">{{ __('counties.counties') }}</a></li>
|
||||
<li class="active">{{ __('counties.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'counties.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('district_id', __('counties.district')) }}
|
||||
{{ Form::select('district_id', $districts, '', ['class' => 'form-control compulsory' , 'required', 'id' => 'district']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('counties.county_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('counties.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('counties.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
// apply searchable dropdown
|
||||
$('#district').select2({
|
||||
//
|
||||
});
|
||||
|
||||
$('.select2-selection.select2-selection--single').css('height','calc(3.85rem)');
|
||||
$('.select2-selection.select2-selection--single').css('padding-top','5px');
|
||||
$('.select2-selection__arrow').css('top','3px');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('counties.edit_county') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('counties.dashboard') }}</a></li>
|
||||
<li><a href="/counties/index">{{ __('counties.counties') }}</a></li>
|
||||
<li class="active">{{ __('counties.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($county, ['method' => 'PUT', 'route' => ['counties.update',$county], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('district_id', __('counties.district')) }}
|
||||
{{ Form::select('district_id', $districts, $county->district_id, ['class' => 'form-control compulsory' , 'required', 'id' => 'district']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('counties.county_name')) }}
|
||||
{{ Form::text('name', $county->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('counties.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('counties.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
// apply searchable dropdown
|
||||
$('#district').select2({
|
||||
//
|
||||
});
|
||||
|
||||
$('.select2-selection.select2-selection--single').css('height','calc(3.85rem)');
|
||||
$('.select2-selection.select2-selection--single').css('padding-top','5px');
|
||||
$('.select2-selection__arrow').css('top','3px');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('counties.activate_counties') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('counties.dashboard') }}</a></li>
|
||||
<li><a href="/counties/index">{{ __('counties.counties') }}</a></li>
|
||||
<li class="active">{{ __('counties.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('counties.county_name') }}</th>
|
||||
<th>{{ __('counties.district_name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($counties as $county)
|
||||
<tr>
|
||||
<td>{{ $county->name }}</td>
|
||||
<td>{{ $districts[$county->district_id] }}</td>
|
||||
<td>
|
||||
{{ Form::model($county->id ,['method' => 'POST', 'route' => ['counties.activate', $county->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('counties.are_you_sure'); ?>')"><i class="fa fa-check"></i> {{ __('counties.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('counties.counties') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('counties.dashboard') }}</a></li>
|
||||
<li><a href="/counties/index">{{ __('counties.counties') }}</a></li>
|
||||
<li class="active">{{ __('counties.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('counties.county_name') }}</th>
|
||||
<th>{{ __('counties.district_name') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($counties as $county)
|
||||
<tr>
|
||||
<td>{{ $county->name }}</td>
|
||||
<td>{{ (($county->district_id != 0) && isset($districts[$county->district_id])) ? $districts[$county->district_id] : '' }}</td>
|
||||
<td>
|
||||
<a href="/counties/{{ $county->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('counties.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($county->id ,['method' => 'DELETE', 'route' => ['counties.destroy', $county->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('counties.are_you_sure'); ?>')"><i class="fa fa-trash"></i> {{ __('counties.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,43 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('countries.add_country') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('countries.dashboard') }}</a></li>
|
||||
<li><a href="/countries/index">{{ __('countries.countries') }}</a></li>
|
||||
<li class="active">{{ __('countries.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::countries.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'countries.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name',__('countries.country_name'))}}
|
||||
{{ Form::text('name','',['class' => 'form-control compulsory', 'required', 'placeholder'=>'e.g. Uganda']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('countries.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('countries.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
@@ -0,0 +1,43 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('countries.edit_countries') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('countries.dashboard') }}</a></li>
|
||||
<li><a href="/countries/index">{{ __('countries.countries') }}</a></li>
|
||||
<li class="active">{{ __('countries.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::countries.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($country, ['method' => 'PUT', 'route' => ['countries.update',$country], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('countries.countries_name')) }}
|
||||
{{ Form::text('name', $country->name, ['class' => 'form-control compulsory', 'required', 'placeholder'=>'e.g. Uganda']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('countries.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('countries.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('countries.activate_countries') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('countries.dashboard') }}</a></li>
|
||||
<li><a href="/countries/index">{{ __('countries.countries') }}</a></li>
|
||||
<li class="active">{{ __('countries.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::countries.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('countries.export_data') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('countries.country_name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('countries.country_name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tbody>
|
||||
@foreach($countries as $country)
|
||||
<tr>
|
||||
<td>{{ $country->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($country->id ,['method' => 'POST', 'route' => ['countries.activate', $country->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> {{ __('countries.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,88 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('countries.countries') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('countries.dashboard') }}</a></li>
|
||||
<li><a href="/countries/index">{{ __('countries.occupations') }}</a></li>
|
||||
<li class="active">{{ __('countries.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::countries.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('countries.export_data') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('countries.country_name') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('countries.country_name') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($countries as $country)
|
||||
<tr>
|
||||
<td>{{ $country->name}}</td>
|
||||
<td>
|
||||
<a href="/countries/{{ $country->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('countries.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($country->id ,['method' => 'DELETE', 'route' => ['countries.destroy', $country->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('countries.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength: 50,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('countries.create') }}" class="nav-item btn btn-default ti-plus"> {{ __('countries.add_country') }}</a>
|
||||
<a href="{{ route('countries.index') }}" class="nav-item btn btn-default ti-pencil"> {{ __('countries.view_country') }}</a>
|
||||
<a href="{{ route('countries.inactive') }}" class="nav-item btn btn-default ti-pencil"> {{ __('countries.activate_country') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('departments.add_department') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li><a href="/departments/index">{{ __('departments.departments') }}</a></li>
|
||||
<li class="active">Create</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'departments.store', 'data-toggle' => 'validator']) }}
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('departments.department_name') }}</label>
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('departments.edit_department') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li><a href="/departments/">{{ __('departments.departments') }}</a></li>
|
||||
<li class="active">Edit</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($department, ['method' => 'PUT', 'route' => ['departments.update',$department], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ __('departments.department_name') }}</label>
|
||||
{{ Form::text('name', $department->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
Executable
+90
@@ -0,0 +1,90 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('departments.edit_all_departments') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li><a href="/departments/index">{{ __('departments.departments') }}</a></li>
|
||||
<li class="active">{{ __('departments.edit_all') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($departments, ['method' => 'ANY', 'route' => ['departments.update_all'], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>Id</th>
|
||||
<th>{{ __('departments.department_name') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th hidden>Id</th>
|
||||
<th>{{ __('departments.department_name') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($departments as $department)
|
||||
<tr>
|
||||
<td hidden>{{ Form::text('id[]', $department->id, ['class' => 'form-control']) }}</td>
|
||||
<td>
|
||||
{{ Form::text('name[]', $department->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div id='{{ $department->id }}' class="help-block with-errors"></div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+83
@@ -0,0 +1,83 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('departments.activate_departments') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li><a href="/departments/index">{{ __('departments.departments') }}</a></li>
|
||||
<li class="active">{{ __('departments.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('departments.export') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('departments.department_name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('departments.department_name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($departments as $department)
|
||||
<tr>
|
||||
<td>{{ $department->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($department->id ,['method' => 'POST', 'route' => ['departments.activate', $department->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> {{ __('departments.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('departments.departments') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li><a href="/departments/index">{{ __('departments.departments') }}</a></li>
|
||||
<li class="active">View</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('departments.export') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('departments.department_name') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('departments.department_name') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($departments as $department)
|
||||
<tr>
|
||||
<td>{{ $department->name }}</td>
|
||||
<td>
|
||||
<a href="/departments/{{ $department->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('departments.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($department->id ,['method' => 'DELETE', 'route' => ['departments.destroy', $department->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('departments.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+268
@@ -0,0 +1,268 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@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">{{ __('diagnoses.add_diagnosis') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diagnoses.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('diagnoses.index') }}">{{ __('diagnoses.diagnosis') }}</a></li>
|
||||
<li class="active">{{ __('diagnoses.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::diagnoses.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'diagnoses.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('diagnoses.diagnosis_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
@if (!empty($errors->get('name')))
|
||||
<div class="help-block with-errors alert alert-danger">
|
||||
@foreach ($errors->get('name') as $message)
|
||||
{{ $message }}
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('icd10_code', __('diagnoses.icd_10_code')) }}
|
||||
{{ Form::text('icd10_code', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<p> HMIS Outpatient Report (105) </p>
|
||||
<div class="form-group">
|
||||
{{ Form::select('outpatient_hmis_category', $outpatient_hmis_categories, '', ['class' => 'form-control compulsory', 'id'=>'outpatient_hmis_category', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<select class="form-control" id="outpatient_hmis_category_option" name="outpatient_hmis_category_option" required>
|
||||
<option value="" selected disabled>- Select HMIS Outpatient category first -</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="outpatient_parent_dependent_option">
|
||||
{{ Form::label('outpatient_dependent_option', 'Outpatient Dependent Option') }}
|
||||
<select class="form-control" id="outpatient_dependent_option" name="outpatient_dependent_option">
|
||||
<option value="" selected disabled>- Select Dependent Option -</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="outpatient_district_code">
|
||||
{{ Form::label('district_code', 'District Disease Code') }}
|
||||
{{ Form::text('district_code', '', ['class' => 'form-control', 'id'=>'district_code']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<hr>
|
||||
<p> HMIS Inpatient Report (108) </p>
|
||||
<div class="form-group">
|
||||
{{-- {{ Form::label('hmis_category', __('diagnoses.hmis_category')) }} --}}
|
||||
{{ Form::select('hmis_category', $inpatient_hmis_categories, '', ['class' => 'form-control compulsory', 'id'=>'hmis_category_inpatient', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('hmis_category_inpatient_options', __('diagnoses.hmis_inpatient_category')) }}
|
||||
<select class="form-control" id="hmis_category_inpatient_options" name="hmis_no_inpatient" required>
|
||||
<option value="" selected disabled>- Select HMIS category first -</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="dependent_option">
|
||||
{{ Form::label('hysterectomy_type', 'Dependent Option') }}
|
||||
<select class="form-control" id="parent_dependent_option" name="parent_dependent_option">
|
||||
<option value="" selected disabled>- Select Dependent Option -</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
@if(is_chi_enabled())
|
||||
<div class="form-group" id="drugs_dropdown">
|
||||
{{ Form::label('insurance_tariffs', 'Insurance Tariffs') }}
|
||||
{{ Form::select('insurance_tariffs[]', $insurance_tariffs,'',['id'=>'insurance_tariffs', 'multiple', 'class' => 'form-control']) }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group">
|
||||
{{ Form::label('prompts', __('diagnoses.diagnosis_prompt')) }}
|
||||
{{ Form::textArea('prompts', '', ['class'=>'form-control', 'rows' => 5]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('', __('diagnoses.chronic_status'), ["class"=>'col-md-12']) }}
|
||||
{{ __('diagnoses.yes') }} {{ Form::radio('chronic_status', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('diagnoses.no') }} {{ Form::radio('chronic_status', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('available', __('diagnoses.is_diagnosis_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('diagnoses.yes') }} {{ Form::radio('available', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('diagnoses.no') }} {{ Form::radio('available', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('diagnosis_category', __('diagnoses.diagnosis_category')) }}
|
||||
{{ Form::select('diagnosis_category', $diagnosis_categories, '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_areas', __('diagnoses.reference_areas')) }}
|
||||
<div class="row input_fields_wrap copy" id="copy">
|
||||
<br><br>
|
||||
<div class="col-md-5">
|
||||
{{ Form::text('reference_names[]', '', ['class' => 'form-control', 'placeholder' => 'Reference name']) }}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{{ Form::text('reference_areas[]', '', ['class' => 'form-control', 'placeholder' => 'e.g. http://google.com']) }}
|
||||
</div>
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
<a class="add_field btn btn-primary">{{ __('diagnoses.add_more')}}</a>
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('diagnoses.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('diagnoses.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('js/diagnosis/create.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#insurance_tariffs').select2({
|
||||
placeholder: "Select",
|
||||
width: "100%"
|
||||
});
|
||||
$('#hmis_category_inpatient_options, #hmis_category_inpatient, #parent_dependent_option, #outpatient_hmis_category, #outpatient_hmis_category_option, #outpatient_dependent_option').select2();
|
||||
$('#dependent_option, #outpatient_parent_dependent_option, #outpatient_district_code').hide();
|
||||
|
||||
$('#hmis_category_inpatient_options').change(function(e) {
|
||||
var parent_id = $('#hmis_category_inpatient_options').val();
|
||||
var div = 'parent_dependent_option';
|
||||
const parents = Object.values(@json($parent_categories));
|
||||
// console.log(parents.findIndex(check_options));
|
||||
if (parents.findIndex(check_options) !== -1) {
|
||||
dependent_category_options(parent_id, div);
|
||||
$('#dependent_option').show();
|
||||
}else if ($('#dependent_option').is(':visible')) {
|
||||
$('#dependent_option').hide();
|
||||
$('#parent_dependent_option').prop('selectedIndex',0);
|
||||
$('#parent_dependent_option').prop('required',false);
|
||||
}
|
||||
|
||||
});
|
||||
$('#outpatient_hmis_category_option').change(function(){
|
||||
var option = $('#outpatient_hmis_category_option').val();
|
||||
var div = 'outpatient_dependent_option';
|
||||
const parent_options = Object.values(@json($parent_categories));
|
||||
if(option == '655'){
|
||||
$('#outpatient_district_code').show();
|
||||
$('#district_code').addClass('compulsory');
|
||||
$('#district_code').prop('required', true);
|
||||
}else {
|
||||
if($('#district_code').is(':visible')) $('#district_code').val('');
|
||||
if (parent_options.findIndex(check_option) !== -1) {
|
||||
dependent_category_options(option, div);
|
||||
$('#outpatient_parent_dependent_option').show();
|
||||
}else if ($('#outpatient_parent_dependent_option').is(':visible')) {
|
||||
$('#outpatient_parent_dependent_option').hide();
|
||||
$('#outpatient_dependent_option').prop('selectedIndex',0);
|
||||
$('#outpatient_dependent_option').prop('required',false);
|
||||
}else if ($('#outpatient_district_code').is(':visible')) {
|
||||
$('#district_code').prop('required', false);
|
||||
$('#district_code').removeClass('compulsory');
|
||||
$('#outpatient_district_code').hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function check_options(parent_id) {
|
||||
return parent_id == $('#hmis_category_inpatient_options').val();
|
||||
}
|
||||
|
||||
function check_option(parent_id) {
|
||||
return parent_id == $('#outpatient_hmis_category_option').val();
|
||||
}
|
||||
|
||||
|
||||
$('#hmis_category_inpatient').change(function(e) {
|
||||
category_options('hmis_category_inpatient');
|
||||
});
|
||||
|
||||
$('#outpatient_hmis_category').change(function(e) {
|
||||
category_options('outpatient_hmis_category');
|
||||
});
|
||||
|
||||
function category_options(data){
|
||||
let category = $('#'+data).val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/get_hmis_categories_options",
|
||||
data: {hmis_category: category},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('procedures.failed_options'); ?>");
|
||||
} else {
|
||||
var option = (data == 'hmis_category_inpatient')? 'hmis_category_inpatient_options':'outpatient_hmis_category_option';
|
||||
$('#'+option).html(response);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function dependent_category_options(option, div){
|
||||
let category = option;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/get_dependent_hmis_category_options",
|
||||
data: {parent_category: category},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('procedures.failed_options'); ?>");
|
||||
} else {
|
||||
$('#' + div).html(response);
|
||||
$('#' + div).prop('required',true);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+275
@@ -0,0 +1,275 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('diagnoses.edit_diagnosis') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diagnoses.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('diagnoses.index') }}">{{ __('diagnoses.diagnosis') }}</a></li>
|
||||
<li class="active">{{ __('diagnoses.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::diagnoses.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($diagnosis, ['method' => 'PUT', 'route' => ['diagnoses.update',$diagnosis], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('diagnoses.diagnosis_name')) }}
|
||||
{{ Form::text('name', $diagnosis->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
@if (!empty($errors->get('name')))
|
||||
<div class="help-block with-errors alert alert-danger">
|
||||
@foreach ($errors->get('name') as $message)
|
||||
{{ $message }}
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('icd10_code', __('diagnoses.icd_10_code')) }}
|
||||
{{ Form::text('icd10_code', $diagnosis->icd10_code, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<p> HMIS Outpatient Report (105) </p>
|
||||
<div class="form-group">
|
||||
{{ Form::label('outpatient_hmis_category', __('diagnoses.outpatient_hmis_category')) }}
|
||||
{{ Form::select('outpatient_hmis_category', $outpatient_hmis_categories, $diagnosis->outpatient_hmis_category?? '', ['class' => 'form-control compulsory', 'id'=>'outpatient_hmis_category', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('outpatient_hmis_category_option', __('diagnoses.hmis_outpatient_category')) }}
|
||||
{{ Form::select('outpatient_hmis_category_option', $outpatient_category_options, $diagnosis->outpatient_hmis_category_option?? '', ['class'=>'form-control', 'id'=>'outpatient_hmis_category_option', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="outpatient_parent_dependent_option">
|
||||
{{ Form::label('outpatient_dependent_option', 'Outpatient Dependent Option') }}
|
||||
{{ Form::select('outpatient_dependent_option', $outpatient_dependent_options, $diagnosis->outpatient_dependent_option?? '', ['class'=>'form-control', 'id'=>'outpatient_dependent_option']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="outpatient_district_code" style="display: none">
|
||||
{{ Form::label('district_code', 'District Disease Code') }}
|
||||
@php
|
||||
$district_code = \Streamline\Models\HmisCategoryOptions::find($diagnosis->outpatient_dependent_option);
|
||||
@endphp
|
||||
{{ Form::text('district_code', $district_code->name?? '', ['class' => 'form-control', 'id'=>'district_code']) }}
|
||||
{{ Form::hidden('district_code_id', $district_code->id?? '') }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<p> HMIS Inpatient Report (108) </p>
|
||||
<div class="form-group">
|
||||
{{ Form::label('hmis_category', __('diagnoses.hmis_category')) }}
|
||||
{{ Form::select('hmis_category', $inpatient_hmis_categories, $diagnosis->hmis_category, ['class' => 'form-control compulsory', 'id'=>'hmis_category_inpatient', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('hmis_no_inpatient', __('diagnoses.hmis_inpatient_category')) }}
|
||||
{{ Form::select('hmis_no_inpatient', $inpatient_category_options, $diagnosis->hmis_no_inpatient?? '', ['class'=>'form-control', 'id'=>'hmis_category_inpatient_options', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="dependent_option">
|
||||
{{ Form::label('dependent_option', 'Dependent Option') }}
|
||||
{{ Form::select('parent_dependent_option', $dependent_options, $diagnosis->dependent_option, ['class'=>'form-control', 'id'=>'parent_dependent_option']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
@if(is_chi_enabled())
|
||||
<div class="form-group" id="drugs_dropdown">
|
||||
{{ Form::label('insurance_tariffs', 'Insurance Tariffs') }}
|
||||
{{ Form::select('insurance_tariffs[]', $insurance_tariffs, explode(",", $diagnosis->insurance_tariffs),['id'=>'insurance_tariffs', 'multiple', 'class' => 'form-control']) }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('prompts', __('diagnoses.diagnosis_prompt')) }}
|
||||
{{ Form::textArea('prompts', $diagnosis->prompts, ['class'=>'form-control', 'rows' => 5]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('', __('diagnoses.chronic_status'), ["class"=>'col-md-12']) }}
|
||||
{{ __('diagnoses.yes') }} {{ Form::radio('chronic_status', 1, ($diagnosis->chronic_status) ? true : false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('diagnoses.no') }} {{ Form::radio('chronic_status', 0, ($diagnosis->chronic_status) ? false : true, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('available', __('diagnoses.is_diagnosis_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('diagnoses.yes') }} {{ Form::radio('available', 1, $diagnosis->available == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('diagnoses.no') }} {{ Form::radio('available', 0, $diagnosis->available == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('diagnosis_category', __('diagnoses.diagnosis_category')) }}
|
||||
{{ Form::select('diagnosis_category', $diagnosis_categories, $diagnosis->diagnosis_category, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_areas', __('diagnoses.reference_areas')) }}
|
||||
<?php
|
||||
$reference_areas_array = array_filter(explode(",", $diagnosis->reference_areas));
|
||||
$reference_names_array = array_filter(explode(",", $diagnosis->reference_names));
|
||||
?>
|
||||
@for ($x = 0; $x < count($reference_areas_array); $x++)
|
||||
<div class="row input_fields_wrap copy" id="copy">
|
||||
<br><br>
|
||||
<div class="col-md-5">
|
||||
{{ Form::text('reference_names[]', $reference_names_array ? $reference_names_array[$x] : '', ['class' => 'form-control', 'placeholder' => 'Reference name']) }}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{{ Form::text('reference_areas[]', $reference_areas_array ? $reference_areas_array[$x] : '', ['class' => 'form-control', 'placeholder' => 'e.g. http://google.com']) }}
|
||||
</div>
|
||||
@if ($x > 0)
|
||||
<a href="#" class="remove_field" style="color: maroon"><sup>X</sup></a>
|
||||
@endif
|
||||
</div>
|
||||
@endfor
|
||||
</div>
|
||||
<a class="add_field btn btn-primary">{{ __('diagnoses.add_more')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('diagnoses.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('diagnoses.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('js/diagnosis/create.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#insurance_tariffs').select2({
|
||||
placeholder: "Select",
|
||||
width: "100%"
|
||||
});
|
||||
|
||||
$('#hmis_category_inpatient_options, #hmis_category_inpatient, #parent_dependent_option, #outpatient_hmis_category, #outpatient_hmis_category_option, #outpatient_dependent_option').select2();
|
||||
var show = {!! json_encode($diagnosis->dependent_option) !!};
|
||||
if(show == null) $('#dependent_option').hide();
|
||||
var show2 = {!! json_encode($diagnosis->outpatient_dependent_option) !!};
|
||||
var show3 = {!! json_encode($diagnosis->outpatient_hmis_category_option) !!};
|
||||
console.log(show3);
|
||||
if(show2 == null || show3 == '655') $('#outpatient_parent_dependent_option').hide();
|
||||
if(show3 == '655') $('#outpatient_district_code').show();
|
||||
$('#hmis_category_inpatient_options').change(function(e) {
|
||||
var parent_id = $('#hmis_category_inpatient_options').val();
|
||||
var div = 'parent_dependent_option';
|
||||
const parents = Object.values(@json($parent_categories));
|
||||
// console.log(parents.findIndex(check_options));
|
||||
if (parents.findIndex(check_options) !== -1) {
|
||||
dependent_category_options(parent_id, div);
|
||||
$('#dependent_option').show();
|
||||
}else if ($('#dependent_option').is(':visible')) {
|
||||
$('#dependent_option').hide();
|
||||
$('#parent_dependent_option').prop('selectedIndex',0);
|
||||
$('#parent_dependent_option').prop('required',false);
|
||||
}
|
||||
|
||||
});
|
||||
$('#outpatient_hmis_category_option').change(function(){
|
||||
var option = $('#outpatient_hmis_category_option').val();
|
||||
var div = 'outpatient_dependent_option';
|
||||
const parent_options = Object.values(@json($parent_categories));
|
||||
if(option == '655'){
|
||||
$('#outpatient_district_code').show();
|
||||
$('#district_code').addClass('compulsory');
|
||||
$('#district_code').prop('required', true);
|
||||
}else{
|
||||
if($('#district_code').is(':visible')) $('#district_code').val('');
|
||||
if (parent_options.findIndex(check_option) !== -1) {
|
||||
dependent_category_options(option, div);
|
||||
$('#outpatient_parent_dependent_option').show();
|
||||
}else if ($('#outpatient_parent_dependent_option').is(':visible')) {
|
||||
$('#outpatient_parent_dependent_option').hide();
|
||||
$('#outpatient_dependent_option').prop('selectedIndex',0);
|
||||
$('#outpatient_dependent_option').prop('required',false);
|
||||
}else if ($('#outpatient_district_code').is(':visible')) {
|
||||
$('#district_code').prop('required', false);
|
||||
$('#district_code').removeClass('compulsory');
|
||||
$('#outpatient_district_code').hide();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
function check_options(parent_id) {
|
||||
return parent_id == $('#hmis_category_inpatient_options').val();
|
||||
}
|
||||
|
||||
function check_option(parent_id) {
|
||||
return parent_id == $('#outpatient_hmis_category_option').val();
|
||||
}
|
||||
|
||||
$('#hmis_category_inpatient').change(function(e) {
|
||||
category_options('hmis_category_inpatient');
|
||||
});
|
||||
|
||||
$('#outpatient_hmis_category').change(function(e) {
|
||||
category_options('outpatient_hmis_category');
|
||||
});
|
||||
|
||||
function category_options(data){
|
||||
let category = $('#'+data).val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/get_hmis_categories_options",
|
||||
data: {hmis_category: category},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('procedures.failed_options'); ?>");
|
||||
} else {
|
||||
var option = (data == 'hmis_category_inpatient')? 'hmis_category_inpatient_options':'outpatient_hmis_category_option';
|
||||
$('#'+option).html(response);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function dependent_category_options(option, div){
|
||||
let category = option;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/get_dependent_hmis_category_options",
|
||||
data: {parent_category: category},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('procedures.failed_options'); ?>");
|
||||
} else {
|
||||
$('#' + div).html(response);
|
||||
$('#' + div).prop('required',true);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('diagnoses.edit_all_diagnoses') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diagnoses.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('diagnoses.index') }}">{{ __('diagnoses.diagnosis') }}</a></li>
|
||||
<li class="active">{{ __('diagnoses.edit_all') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::diagnoses.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($diagnoses, ['method' => 'ANY', 'route' => ['diagnoses.update_all'], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>{{ __('diagnoses.id') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_out_patient_number') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_inpatient_category') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th width="8%">{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas_seperate_with_commas') }}</th>
|
||||
<th>{{ __('diagnoses.reference_names_seperate_with_commas') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_category') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th hidden>{{ __('diagnoses.id') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_out_patient_number') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_inpatient_category') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th width="8%">{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas_seperate_with_commas') }}</th>
|
||||
<th>{{ __('diagnoses.reference_names_seperate_with_commas') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_category') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($diagnoses as $diagnosis)
|
||||
<tr>
|
||||
<td hidden>{{ Form::text('id[]', $diagnosis->id, ['class' => 'form-control']) }}</td>
|
||||
<td>
|
||||
<p style="display: none">{{ $diagnosis->name }}</p>
|
||||
{{ Form::text('name[]', $diagnosis->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</td>
|
||||
<td>{{ Form::text('icd10_code[]', $diagnosis->icd10_code, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::text('hmis_no_outpatient[]', $diagnosis->hmis_no_outpatient, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::text('hmis_no_inpatient[]', $diagnosis->hmis_no_inpatient, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::textArea('prompts[]', $diagnosis->prompts, ['class' => 'form-control', 'rows' => 5]) }}</td>
|
||||
<td>{{ Form::select('chronic_status[]', [1 => 'Yes', 0 => 'No'], $diagnosis->chronic_status, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::text('reference_areas[]', $diagnosis->reference_areas, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::text('reference_names[]', $diagnosis->reference_names, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::select('hmis_category[]', $hmis_categories, $diagnosis->hmis_category, ['class' => 'form-control']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('diagnoses.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('diagnoses.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::diagnoses.menu')
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength: 100,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('diagnoses.active_diagnoses') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diagnoses.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('diagnoses.index') }}">{{ __('diagnoses.diagnosis') }}</a></li>
|
||||
<li class="active">{{ __('diagnoses.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::diagnoses.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">Export data to Copy, CSV, Excel, PDF & Print</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.outpatient_number') }}</th>
|
||||
<th>{{ __('diagnoses.inpatient_number') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas') }}</th>
|
||||
<th>{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.outpatient_number') }}</th>
|
||||
<th>{{ __('diagnoses.inpatient_number') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas') }}</th>
|
||||
<th>{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($diagnoses as $diagnosis)
|
||||
<tr>
|
||||
<td>{{ $diagnosis->name }}</td>
|
||||
<td>{{ $diagnosis->icd10_code }}</td>
|
||||
<td>{{ $diagnosis->hmis_no_outpatient }}</td>
|
||||
<td>{{ $diagnosis->hmis_no_inpatient }}</td>
|
||||
<td>{{ $diagnosis->prompts }}</td>
|
||||
<td>
|
||||
<?php
|
||||
$reference_areas_array = explode(",", $diagnosis->reference_areas);
|
||||
$reference_names_array = explode(",", $diagnosis->reference_names);
|
||||
?>
|
||||
|
||||
@for ($x = 0; $x < count($reference_areas_array); $x++)
|
||||
@if(isset($reference_areas_array[$x]))
|
||||
<a href="{{ $reference_areas_array[$x] }}" target="_blank">
|
||||
{{ isset($reference_names_array[$x]) ? $reference_names_array[$x] : '' }}
|
||||
</a>
|
||||
@endif
|
||||
@endfor
|
||||
</td>
|
||||
<td>
|
||||
@if ($diagnosis->chronic_status)
|
||||
{{ __('diagnoses.yes') }}
|
||||
@else
|
||||
{{ __('diagnoses.no') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($diagnosis->id ,['method' => 'POST', 'route' => ['diagnoses.activate', $diagnosis->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('diagnoses.are_you_sure')?>')"><i class="fa fa-check"></i> {{ __('diagnoses.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('diagnoses.diagnosis') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diagnoses.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('diagnoses.index') }}">{{ __('diagnoses.diagnosis') }}</a></li>
|
||||
<li class="active">{{ __('diagnoses.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::diagnoses.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.outpatient_hmis_category') }}</th>
|
||||
<th>{{ __('diagnoses.inpatient_hmis_category') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas') }}</th>
|
||||
<th>{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.outpatient_hmis_category') }}</th>
|
||||
<th>{{ __('diagnoses.inpatient_hmis_category') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas') }}</th>
|
||||
<th>{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($diagnoses as $diagnosis)
|
||||
<tr>
|
||||
<td>{{ $diagnosis->name }}</td>
|
||||
<td>{{ $diagnosis->icd10_code }}</td>
|
||||
<td>
|
||||
@if (!empty($diagnosis->outpatient_dependent_option))
|
||||
{{ $hmis_category_options[$diagnosis->outpatient_hmis_category_option] .' ('. $hmis_category_options[$diagnosis->outpatient_dependent_option].')' }}
|
||||
@else
|
||||
{{ (!empty($diagnosis->outpatient_hmis_category_option) && is_int($diagnosis->outpatient_hmis_category_option))? $hmis_category_options[$diagnosis->outpatient_hmis_category_option]:'' }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($diagnosis->dependent_option))
|
||||
{{ $hmis_category_options[$diagnosis->hmis_no_inpatient] .' ('. $hmis_category_options[$diagnosis->dependent_option].')' }}
|
||||
@else
|
||||
{{ $hmis_category_options[$diagnosis->hmis_no_inpatient]?? '' }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $diagnosis->prompts }}</td>
|
||||
<td>
|
||||
@php
|
||||
$reference_areas_array = explode(",", $diagnosis->reference_areas);
|
||||
$reference_names_array = explode(",", $diagnosis->reference_names);
|
||||
@endphp
|
||||
|
||||
@for ($x = 0; $x < count($reference_areas_array); $x++)
|
||||
@if(isset($reference_areas_array[$x]))
|
||||
<a href="{{ $reference_areas_array[$x] }}" target="_blank">
|
||||
{{ isset($reference_names_array[$x]) ? $reference_names_array[$x] : '' }}
|
||||
</a>
|
||||
@endif
|
||||
@endfor
|
||||
</td>
|
||||
<td>
|
||||
@if ($diagnosis->chronic_status)
|
||||
{{ __('diagnoses.yes') }}
|
||||
@else
|
||||
{{ __('diagnoses.no') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<a href="/diagnoses/{{ $diagnosis->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('diagnoses.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
@if (!in_array($diagnosis->id, $issued_diagnoses))
|
||||
{{ Form::model($diagnosis->id,['method' => 'DELETE', 'route' => ['diagnoses.destroy', $diagnosis->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('diagnoses.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('diagnoses.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
@else
|
||||
<b class="text-success">Diagnosis given </b>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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 type="text/javascript">
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength: 100,
|
||||
aaSorting: [],
|
||||
columnDefs: [ {
|
||||
targets: [4, 5, 6, 7, 8], /* column index */
|
||||
orderable: false, /* true or false */
|
||||
}],
|
||||
buttons: [
|
||||
'copy',
|
||||
{extend: 'csv',
|
||||
message: 'LIST OF DIAGNOSIS'
|
||||
},
|
||||
{extend: 'excel',
|
||||
message: 'LIST OF DIAGNOSIS',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 6]
|
||||
},
|
||||
sheetName: 'LIST OF DIAGNOSIS'
|
||||
},
|
||||
{extend: 'pdf',
|
||||
message: 'LIST OF DIAGNOSIS',
|
||||
orientation: 'portrait',
|
||||
pageSize: 'LETTER',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 6]
|
||||
},
|
||||
customize: function (doc) {
|
||||
doc.defaultStyle.fontSize = 10;
|
||||
// doc.styles.tableHeader.alignment = 'left';
|
||||
}
|
||||
},
|
||||
{extend: 'print',
|
||||
message: 'LIST OF DIAGNOSIS',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 6]
|
||||
},
|
||||
customize: function (win) {
|
||||
$(win.document.body)
|
||||
.css('font-size', '10pt')
|
||||
.css('background', '#fff')
|
||||
.prepend(
|
||||
'<img src="<?php echo asset('uploads/logo/logo-sm.png'); ?>" style="position:absolute; top:0; right:0;" />'
|
||||
);
|
||||
$(win.document.body).find('table')
|
||||
.addClass('compact')
|
||||
.css('font-size', 'inherit');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="/diagnoses/create" class="nav-item btn btn-default ti-plus">{{ __('diagnoses.add_new_diagnosis') }}</a>
|
||||
<a href="/diagnoses/edit/all" class="nav-item btn btn-default ti-pencil"> {{ __('diagnoses.edit_all_diagnoses') }}</a>
|
||||
<a href="/diagnoses/" class="nav-item btn btn-default ti-pencil"> {{ __('diagnoses.view_activate_diagnoses') }}</a>
|
||||
<a href="/diagnoses/inactive" class="nav-item btn btn-default ti-pencil"> {{ __('diagnoses.view_inactivate_diagnoses') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('districts.add_new_district') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('districts.dashboard') }}</a></li>
|
||||
<li><a href="/districts/">{{ __('districts.district') }}</a></li>
|
||||
<li class="active">{{ __('districts.add_new_district') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'districts.store','data-toggle'=>'validator']) }}
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('districts.district_name'))}}
|
||||
{{ Form::text('name','',['class' => 'form-control compulsory', 'data-error'=>'', 'required','placeholder'=>'e.g Kampala']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button( __('districts.save'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('districts.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Districts')
|
||||
|
||||
@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">{{ __('districts.edit_district') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('districts.dashboard') }}</a></li>
|
||||
<li><a href="/districts/">{{ __('districts.districts') }}</a></li>
|
||||
<li class="active">{{ __('districts.edit_district') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
@include('flash::message')
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{{ __('districts.edit_district') }}</div>
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::model($district, ['method' => 'PUT', 'route' => ['districts.update',$district]]) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('districts.district_name'))}}
|
||||
{{ Form::text('name', $district->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::submit(__('districts.save'), ['class'=>'btn btn-success pull-right col-md-4']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('districts.activate_districts') }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('districts.dashboard') }}</a></li>
|
||||
<li><a href="/districts/index">{{ __('districts.districts') }}</a></li>
|
||||
<li class="active">{{ __('districts.activate_districts') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('districts.export_to_pdf') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('districts.district') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($districts as $district)
|
||||
<tr>
|
||||
<td>{{ $district->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($district->id ,['method' => 'POST', 'route' => ['districts.activate', $district->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> {{ __('districts.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('districts.view_districts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('districts.dashboard') }}</a></li>
|
||||
<li><a href="/districts/">{{ __('districts.districts') }}</a></li>
|
||||
<li class="active">{{ __('districts.view_districts') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('districts.export_to_pdf') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="display nowrap" cellspacing="0" width="60%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('districts.district_name') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($districts as $district)
|
||||
<tr>
|
||||
<td>{{ $district->name }}</td>
|
||||
<td>
|
||||
<a href="/districts/{{ $district->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('districts.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($district->id ,['method' => 'DELETE', 'route' => ['districts.destroy', $district->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('districts.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$(document).ready(function () {
|
||||
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('donors.add_donor') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('donors.dashboard') }}</a></li>
|
||||
<li><a href="/donors/index">{{ __('donors.donors') }}</a></li>
|
||||
<li class="active">{{ __('donors.add_donor') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'donors.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('donors.donor_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('donors.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('donors.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('donors.edit_donor') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('donors.dashboard') }}</a></li>
|
||||
<li><a href="/donors/index">{{ __('donors.donors') }}</a></li>
|
||||
<li class="active">{{ __('donors.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($donor, ['method' => 'PUT', 'route' => ['donors.update',$donor], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('donors.donor_name')) }}
|
||||
{{ Form::text('name', $donor->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('donors.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('donors.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('donors.activate_donors') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('donors.dashboard') }}</a></li>
|
||||
<li><a href="/donors/index">{{ __('donors.donors') }}</a></li>
|
||||
<li class="active">{{ __('donors.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('donors.donor_name') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($donors as $donor)
|
||||
<tr>
|
||||
<td>{{ $donor->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($donor->id ,['method' => 'POST', 'route' => ['donors.activate', $donor->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('donors.are_you_sure');?>')"><i class="fa fa-check"></i> {{ __('donors.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('donors.donors') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('donors.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('donors.donors') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('donors.donor_name') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($donors as $donor)
|
||||
<tr>
|
||||
<td>{{ $donor->name }}</td>
|
||||
<td>
|
||||
<a href="/donors/{{ $donor->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('donors.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($donor->id ,['method' => 'DELETE', 'route' => ['donors.destroy', $donor->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('donors.are_you_sure');?>')"><i class="fa fa-trash"></i> {{ __('donors.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+53
@@ -0,0 +1,53 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('dosage_frequencies.add_dosage_frequency') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('dosage_frequencies.dashboard') }}</a></li>
|
||||
<li><a href="/dosage_frequencies/index">{{ __('dosage_frequencies.dosage_frequencies') }}</a></li>
|
||||
<li class="active">{{ __('dosage_frequencies.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::dosage_frequencies.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'dosage_frequencies.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('dosage_frequencies.frequency')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('factor', __('dosage_frequencies.factor')) }}
|
||||
{{ Form::number('factor', '', ['class' => 'form-control compulsory', 'step' => '.01', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('dosage_frequencies.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('dosage_frequencies.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
Executable
+53
@@ -0,0 +1,53 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('dosage_frequencies.edit_dosage_frequency') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('dosage_frequencies.dashboard') }}</a></li>
|
||||
<li><a href="/dosage_frequencies/index">{{ __('dosage_frequencies.dosage_frequencies') }}</a></li>
|
||||
<li class="active">{{ __('dosage_frequencies.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::dosage_frequencies.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($frequency, ['method' => 'PUT', 'route' => ['dosage_frequencies.update',$frequency], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('dosage_frequencies.frequency')) }}
|
||||
{{ Form::text('name', $frequency->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('factor', __('dosage_frequencies.factor')) }}
|
||||
{{ Form::number('factor', $frequency->factor, ['class' => 'form-control compulsory', 'step' => '.01', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('dosage_frequencies.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('dosage_frequencies.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
Executable
+92
@@ -0,0 +1,92 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('dosage_frequencies.activate_dosage_frequencies') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('dosage_frequencies.dashboard') }}</a></li>
|
||||
<li><a href="/dosage_frequencies/index">{{ __('dosage_frequencies.dosage_frequencies') }}</a></li>
|
||||
<li class="active">{{ __('dosage_frequencies.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::dosage_frequencies.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('dosage_frequencies.frequency') }}</th>
|
||||
<th>{{ __('dosage_frequencies.factor') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('dosage_frequencies.frequency') }}</th>
|
||||
<th>{{ __('dosage_frequencies.factor') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($frequencies as $frequency)
|
||||
<tr>
|
||||
<td>{{ $frequency->name }}</td>
|
||||
<td>{{ $frequency->factor }}</td>
|
||||
<td>
|
||||
{{ Form::model($frequency->id ,['method' => 'POST', 'route' => ['dosage_frequencies.activate', $frequency->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('dosage_frequencies.are_you_sure');?>')"><i class="fa fa-check"></i> {{ __('dosage_frequencies.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+96
@@ -0,0 +1,96 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('dosage_frequencies.dosage_frequencies') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('dosage_frequencies.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('dosage_frequencies.dosage_frequencies') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::dosage_frequencies.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('dosage_frequencies.frequency') }}</th>
|
||||
<th>{{ __('dosage_frequencies.factor') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('dosage_frequencies.frequency') }}</th>
|
||||
<th>{{ __('dosage_frequencies.factor') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($frequencies as $frequency)
|
||||
<tr>
|
||||
<td>{{ $frequency->name }}</td>
|
||||
<td>{{ $frequency->factor }}</td>
|
||||
<td>
|
||||
<a href="/dosage_frequencies/{{ $frequency->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('dosage_frequencies.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($frequency->id ,['method' => 'DELETE', 'route' => ['dosage_frequencies.destroy', $frequency->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm(('<?php echo __('dosage_frequencies.are_you_sure');?>')"><i class="fa fa-trash"></i> {{ __('dosage_frequencies.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('dosage_frequencies.create') }}" class="nav-item btn btn-default ti-plus"> {{ __('dosage_frequencies.add_dosage_frequency') }}</a>
|
||||
<a href="{{ route('dosage_frequencies.index') }}" class="nav-item btn btn-default ti-pencil"> {{ __('dosage_frequencies.dosage_frequencies') }}</a>
|
||||
<a href="{{ route('dosage_frequencies.inactive') }}" class="nav-item btn btn-default ti-pencil"> {{ __('dosage_frequencies.activate_dosage_frequencies') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
Executable
+66
@@ -0,0 +1,66 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@endpush
|
||||
|
||||
|
||||
@section('title', '| Add Drug Category')
|
||||
|
||||
@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">{{ __('drug_categories.new_drug_categories') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_categories.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_categories.clinical_data_home') }}</a></li>
|
||||
<li><a href="/drug_categories/">{{ __('drug_categories.drug_categories') }}</a></li>
|
||||
<li class="active">{{ __('drug_categories.register') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_categories.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'drug_categories.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drug_categories.drug_category')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('anti_malarial', __('drug_categories.anti_malarial'), ["class"=>'col-md-12']) }}
|
||||
{{ __('drug_categories.yes') }} {{ Form::radio('anti_malarial', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('drug_categories.no') }} {{ Form::radio('anti_malarial', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drug_categories.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drug_categories.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
@endpush
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@endpush
|
||||
|
||||
@section('title', '| Edit Drug Category')
|
||||
|
||||
@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">{{ __('drug_categories.edit_drug_category') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_categories.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_categories.clinical_data_home') }}</a></li>
|
||||
<li><a href="/drug_categories/">{{ __('drug_categories.drug_categories') }}</a></li>
|
||||
<li class="active">{{ __('drug_categories.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_categories.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::model($drug_category, ['method' => 'PUT', 'route' => ['drug_categories.update',$drug_category]]) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drug_categories.drug_category')) }}
|
||||
{{ Form::text('name', $drug_category->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('anti_malarial', __('drug_categories.anti_malarial'), ["class"=>'col-md-12']) }}
|
||||
{{ __('drug_categories.yes') }} {{ Form::radio('anti_malarial', 1, $drug_category->anti_malarial == 1? true: false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('drug_categories.no') }} {{ Form::radio('anti_malarial', 0, (isset($drug_category->anti_malarial) && $drug_category->anti_malarial == 0)? true: false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
|
||||
{{ Form::button(__('drug_categories.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drug_categories.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
@endpush
|
||||
Executable
+70
@@ -0,0 +1,70 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drug_categories.inactive_drug_categories') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_categories.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_categories.clinical_data_home') }}</a></li>
|
||||
<li><a href="/drug_categories/">{{ __('drug_categories.drug_category') }}</a></li>
|
||||
<li class="active">{{ __('drug_categories.inactive') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_categories.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drug_categories.drug_category') }}</th>
|
||||
<th>{{ __('drug_categories.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drug_categories as $drug_category)
|
||||
<tr>
|
||||
<td>{{ $drug_category->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($drug_category->id ,['method' => 'POST', 'route' => ['drug_categories.activate', $drug_category->id]]) }}
|
||||
<button type="submit" class="btn btn-warning btn-rounded" onclick="return confirm('<?php echo __('drugs.are_you_sure')?>')"><i class="fa fa-check"></i> {{ __('drug_categories.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+77
@@ -0,0 +1,77 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drug_categories.drug_categories') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_categories.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_categories.clinical_data_home') }}</a></li>
|
||||
<li class="active">{{ __('drug_categories.drug_categories') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_categories.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drug_categories.category') }}</th>
|
||||
<th>{{ __('drug_categories.anti_malarial') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drug_categories as $drug_category)
|
||||
<tr>
|
||||
<td>{{ $drug_category->name }}</td>
|
||||
<td>
|
||||
{{ ($drug_category->anti_malarial == 1) ? __('drug_categories.yes') : __('drug_categories.no') }}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/drug_categories/{{ $drug_category->id }}/edit/" class="btn btn-warning btn-rounded"><i class="fa fa-pencil"></i> {{ __('drug_categories.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($drug_category->id ,['method' => 'DELETE', 'route' => ['drug_categories.destroy', $drug_category->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-danger" onclick="return confirm('<?php echo __('drugs.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('drug_categories.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('drug_categories.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('drug_categories.add_drug_category') }}</span></a>
|
||||
<a href="{{ route('drug_categories.index') }}" class="nav-item btn btn-warning"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('drug_categories.view_drug_categories') }}</span></a>
|
||||
<a href="{{ route('drug_categories.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('drug_categories.activate_drug_categories') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Add Drug Form')
|
||||
|
||||
@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">{{ __('drug_forms.new_drug_form') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_forms.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_forms.clinical_data_form') }}</a></li>
|
||||
<li><a href="/drug_forms/">{{ __('drug_forms.drug_forms') }}</a></li>
|
||||
<li class="active">{{ __('drug_forms.register') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_forms.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'drug_forms.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drug_forms.drug_form')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drug_forms.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drug_forms.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Edit Drug Form')
|
||||
|
||||
@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">{{ __('drug_forms.edit_drug_form') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_forms.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_forms.clinical_data_form') }}</a></li>
|
||||
<li><a href="/drug_forms/">{{ __('drug_forms.drug_forms') }}</a></li>
|
||||
<li class="active">{{ __('drug_forms.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_forms.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::model($drug_form, ['method' => 'PUT', 'route' => ['drug_forms.update',$drug_form]]) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drug_forms.drug_form')) }}
|
||||
{{ Form::text('name', $drug_form->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drug_forms.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drug_forms.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drug_forms.inactive_drug_form') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_forms.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_forms.clinical_data_form') }}</a></li>
|
||||
<li><a href="/drug_forms/">{{ __('drug_forms.drug_forms') }}</a></li>
|
||||
<li class="active">{{ __('drug_forms.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_forms.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drug_forms.drug_form') }}</th>
|
||||
<th>{{ __('drug_forms.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drug_forms as $drug_form)
|
||||
<tr>
|
||||
<td>{{ $drug_form->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($drug_form->id ,['method' => 'POST', 'route' => ['drug_forms.activate', $drug_form->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-warning" onclick="return confirm('<?php echo __("drug_forms.are_you_sure")?>')"><i class="fa fa-check"></i> {{ __('drug_forms.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drug_forms.drug_forms') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_forms.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_forms.clinical_data_form') }}</a></li>
|
||||
<li class="active">{{ __('drug_forms.drug_forms') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_forms.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drug_forms.drug_form') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drug_forms as $drug_form)
|
||||
<tr>
|
||||
<td>{{ $drug_form->name }}</td>
|
||||
<td>
|
||||
<a href="/drug_forms/{{ $drug_form->id }}/edit/" class="btn btn-warning btn-rounded"><i class="fa fa-pencil"></i> {{ __('drug_forms.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($drug_form->id ,['method' => 'DELETE', 'route' => ['drug_forms.destroy', $drug_form->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-rounded" onclick="return confirm('<?php echo __("drug_forms.are_you_sure")?>')"><i class="fa fa-trash"></i> {{ __('drug_forms.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('drug_forms.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('drug_forms.add_drug_form') }}</span></a>
|
||||
<a href="{{ route('drug_forms.index') }}" class="nav-item btn btn-info"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('drug_forms.view_drug_forms') }}</span></a>
|
||||
<a href="{{ route('drug_forms.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('drug_forms.activate_drug_forms') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Add Drug route')
|
||||
|
||||
@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">{{ __('drug_routes.new_drug_route') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_routes.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_routes.clinical_data_route') }}</a></li>
|
||||
<li><a href="/drug_routes/">{{ __('drug_routes.drug_routes') }}</a></li>
|
||||
<li class="active">{{ __('drug_routes.register') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_routes.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'drug_routes.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drug_routes.drug_route')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drug_routes.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drug_routes.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Edit Drug route')
|
||||
|
||||
@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">{{ __('drug_routes.edit_drug_route') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_routes.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_routes.clinical_data_route') }}</a></li>
|
||||
<li><a href="/drug_routes/">{{ __('drug_routes.drug_routes') }}</a></li>
|
||||
<li class="active">{{ __('drug_routes.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_routes.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::model($drug_route, ['method' => 'PUT', 'route' => ['drug_routes.update',$drug_route]]) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drug_routes.drug_route')) }}
|
||||
{{ Form::text('name', $drug_route->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drug_routes.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drug_routes.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Executable
+70
@@ -0,0 +1,70 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drug_routes.inactive_drug_route') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_routes.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_routes.clinical_data_route') }}</a></li>
|
||||
<li><a href="/drug_routes/">{{ __('drug_routes.drug_routes') }}</a></li>
|
||||
<li class="active">{{ __('drug_routes.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_routes.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drug_routes.drug_route') }}</th>
|
||||
<th>{{ __('drug_routes.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drug_routes as $drug_route)
|
||||
<tr>
|
||||
<td>{{ $drug_route->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($drug_route->id ,['method' => 'POST', 'route' => ['drug_routes.activate', $drug_route->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-warning" onclick="return confirm('<?php echo __("drug_routes.are_you_sure")?>')"><i class="fa fa-check"></i> {{ __('drug_routes.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drug_routes.drug_routes') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_routes.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_routes.clinical_data_route') }}</a></li>
|
||||
<li class="active">{{ __('drug_routes.drug_routes') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_routes.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drug_routes.drug_route') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drug_routes as $drug_route)
|
||||
<tr>
|
||||
<td>{{ $drug_route->name }}</td>
|
||||
<td>
|
||||
<a href="/drug_routes/{{ $drug_route->id }}/edit/" class="btn btn-warning btn-rounded"><i class="fa fa-pencil"></i> {{ __('drug_routes.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($drug_route->id ,['method' => 'DELETE', 'route' => ['drug_routes.destroy', $drug_route->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-rounded" onclick="return confirm('<?php echo __("drug_routes.are_you_sure")?>')"><i class="fa fa-trash"></i> {{ __('drug_routes.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('drug_routes.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('drug_routes.add_drug_route') }}</span></a>
|
||||
<a href="{{ route('drug_routes.index') }}" class="nav-item btn btn-info"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('drug_routes.view_drug_routes') }}</span></a>
|
||||
<a href="{{ route('drug_routes.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('drug_routes.activate_drug_routes') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Add Drug Unit')
|
||||
|
||||
@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">{{ __('drug_units.add_new_drug_unit') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_units.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_units.clinical_data') }}</a></li>
|
||||
<li><a href="/drug_units/">{{ __('drug_units.drug_units') }}</a></li>
|
||||
<li class="active">{{ __('drug_units.add_new_drug_unit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_units.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'drug_units.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drug_units.drug_unit_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drug_units.save'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drug_units.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', '| Edit Drug Unit')
|
||||
|
||||
@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">{{ __('drug_units.edit_drug_unit') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_units.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_units.clinical_data') }}</a></li>
|
||||
<li><a href="/drug_units/">{{ __('drug_units.drug_units') }}</a></li>
|
||||
<li class="active">{{ __('drug_units.edit_drug_unit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_units.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::model($drug_unit, ['method' => 'PUT', 'route' => ['drug_units.update',$drug_unit]]) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drug_units.drug_unit_name')) }}
|
||||
{{ Form::text('name', $drug_unit->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button( __('drug_units.save'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button( __('drug_units.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drug_units.activate_drug_unit') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_units.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_units.clinical_data') }}</a></li>
|
||||
<li><a href="/drug_units/">{{ __('drug_units.drug_units') }}</a></li>
|
||||
<li class="active">{{ __('drug_units.activate_drug_unit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_units.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drug_units.drug_unit_name') }}</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drug_units as $drug_unit)
|
||||
<tr>
|
||||
<td>{{ $drug_unit->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($drug_unit->id ,['method' => 'POST', 'route' => ['drug_units.activate', $drug_unit->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> {{ __('drug_units.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drug_units.drug_units') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drug_units.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('clinical_data.index') }}">{{ __('drug_units.clinical_data') }}</a></li>
|
||||
<li class="active">{{ __('drug_units.drug_units') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::drug_units.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drug_units.drug_unit') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drug_units as $drug_unit)
|
||||
<tr>
|
||||
<td>{{ $drug_unit->name }}</td>
|
||||
<td>
|
||||
<a href="/drug_units/{{ $drug_unit->id }}/edit/" class="btn btn-warning"><i class="fa fa-pencil"></i> {{ __('drug_units.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($drug_unit->id ,['method' => 'DELETE', 'route' => ['drug_units.destroy', $drug_unit->id]]) }}
|
||||
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('drug_units.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default" style="border-radius: 10px;">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('drug_units.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('drug_units.add_new_drug_unit') }}</span></a>
|
||||
<a href="{{ route('drug_units.index') }}" class="nav-item btn btn-warning"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('drug_units.view_drug_units') }}</span></a>
|
||||
<a href="{{ route('drug_units.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('drug_units.activate_drug_units') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@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">{{ __('drugs.create_multiple_drugs') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.create_multiple_drugs') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
@include ('errors.list')
|
||||
|
||||
@include('clinical_data::drugs.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => ['drugs.bulk_store']]) }}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.drug_categories') }}</th>
|
||||
<th>{{ __('drugs.drug_form') }}</th>
|
||||
<th>{{ __('drugs.drug_unit') }}</th>
|
||||
<th>{{ __('drugs.drug_prompt') }}</th>
|
||||
<th>{{ __('drugs.english_info') }}</th>
|
||||
<th>{{ __('drugs.vernacular_info') }}</th>
|
||||
<th>{{ __('drugs.stock_level') }}</th>
|
||||
<th>{{ __('drugs.re_order_level') }}</th>
|
||||
<th>{{ __('drugs.expiry_date') }}</th>
|
||||
<th>{{ __('drugs.supplier') }}</th>
|
||||
<th>{{ __('drugs.cost_price') }}</th>
|
||||
<th>{{ __('drugs.non_insured_price') }}</th>
|
||||
<th>{{ __('drugs.description') }}</th>
|
||||
<th>{{ __('drugs.income_account') }}</th>
|
||||
<th>{{ __('drugs.cost_of_goods_account') }}</th>
|
||||
<th>{{ __('drugs.inventory_account') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.drug_categories') }}</th>
|
||||
<th>{{ __('drugs.drug_form') }}</th>
|
||||
<th>{{ __('drugs.drug_unit') }}</th>
|
||||
<th>{{ __('drugs.drug_prompt') }}</th>
|
||||
<th>{{ __('drugs.english_info') }}</th>
|
||||
<th>{{ __('drugs.vernacular_info') }}</th>
|
||||
<th>{{ __('drugs.stock_level') }}</th>
|
||||
<th>{{ __('drugs.re_order_level') }}</th>
|
||||
<th>{{ __('drugs.expiry_date') }}</th>
|
||||
<th>{{ __('drugs.supplier') }}</th>
|
||||
<th>{{ __('drugs.cost_price') }}</th>
|
||||
<th>{{ __('drugs.non_insured_price') }}</th>
|
||||
<th>{{ __('drugs.description') }}</th>
|
||||
<th>{{ __('drugs.income_account') }}</th>
|
||||
<th>{{ __('drugs.cost_of_goods_account') }}</th>
|
||||
<th>{{ __('drugs.inventory_account') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@for($i = 0; $i < 50; $i++)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('name[]', '', ['class' => 'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('category_id[]', $drug_categories, null, ['class' => 'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('form_id[]', $drug_forms, null, ['class'=>'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('unit_id[]', $drug_units, null, ['class'=>'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textArea('prompt[]', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textArea('info_english[]', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textArea('info_vernacular[]', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('store_stock[]', '', ['class' => 'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('reorder_level[]', '', ['class' => 'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::date('expiry_date[]', null, ['class' => 'form-control compulsory'])}}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('supplier_id[]', $suppliers, null, ['class'=>'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('cost_price[]', '', ['class'=>'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('non_insured_price[]', '', ['class'=>'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textArea('description[]', '', ['class'=>'form-control', 'rows' => 2]) }}
|
||||
</td>
|
||||
<td>{{ Form::select('account_id[]', $income_accounts, null, ['class'=>'form-control compulsory']) }}</td>
|
||||
<td>{{ Form::select('cog_account[]', $cost_of_goods_accounts, null, ['class'=>'form-control compulsory']) }}</td>
|
||||
<td>{{ Form::select('inventory_account[]', $inventory_asset_accounts, null, ['class'=>'form-control compulsory']) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-rounded btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-rounded btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
pageLength: 100
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+534
@@ -0,0 +1,534 @@
|
||||
@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/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@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">{{ __('drugs.new_drug') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.register') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::drugs.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
@if (session()->has('streamline_setup'))
|
||||
<h3><font color="blue">{{ __('drugs.streamline_setup_eigth_of_ten') }}</font></h3>
|
||||
{{ Form::open(['route' => 'drugs.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drugs.drug_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('category_id', __('drugs.drug_category')) }}
|
||||
{{ Form::select('category_id', $drug_categories, null, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('form_id', __('drugs.drug_form')) }}
|
||||
{{ Form::select('form_id', $drug_forms, null, ['class'=>'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('available', __('drugs.is_drug_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('drugs.yes') }} {{ Form::radio('available', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('drugs.no') }} {{ Form::radio('available', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('unit_id', __('drugs.drug_unit')) }}
|
||||
{{ Form::select('unit_id', $drug_units, null, ['class'=>'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pack', __('drugs.pack')) }}
|
||||
{{ Form::number('pack', '', ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('strength', __('drugs.strength')) }}
|
||||
{{ Form::number('strength', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('supplier_id', __('drugs.supplier')) }}
|
||||
{{ Form::select('supplier_id', $suppliers, null, ['class'=>'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('package_unit_id', __('drugs.package_unit')) }}
|
||||
{{ Form::select('package_unit_id', $package_units, null, ['class'=>'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('',__('drugs.does_package_unit_have_sub_packages'), ["class"=>'col-md-12']) }}
|
||||
{{ __('drugs.yes') }} {{ Form::radio('does_package_unit_have_sub_packages', 1, false, ['class' => 'check form-control have_sub_package', 'data-radio'=>'iradio_flat-green', 'id' => 'does_have_sub_package1', 'onclick'=>'displaySubPackagesDivs()']) }}
|
||||
{{ __('drugs.no') }} {{ Form::radio('does_package_unit_have_sub_packages', 0, false, ['class' => 'check form-control have_sub_package', 'data-radio'=>'iradio_flat-green', 'id' => 'does_not_have_sub_package1', 'onclick'=>'displaySubPackagesDivs()']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_package_unit_div">
|
||||
{{ Form::label('quantity_in_each_package_unit', __('drugs.quantity_in_each_package_unit')) }}
|
||||
{{ Form::number('quantity_in_each_package_unit', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_sub_package_div">
|
||||
{{ Form::label('quantity_in_each_sub_package', __('drugs.quantity_in_each_sub_package')) }}
|
||||
{{ Form::number('quantity_in_each_sub_package', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_sub_package_div">
|
||||
{{ Form::label('number_of_sub_packages_in_main_package', __('drugs.number_of_sub_packages_in_main_package')) }}
|
||||
{{ Form::number('number_of_sub_packages_in_main_package', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('description', __('drugs.drug_description')) }}
|
||||
{{ Form::textArea('description', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('prompt', __('drugs.drug_prompt')) }}
|
||||
{{ Form::textArea('prompt', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!-- <div class="form-group">
|
||||
{{ Form::label('store_stock', __('drugs.current_store_stock')) }}
|
||||
{{ Form::number('store_stock', 0, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pharmacy_stock', __('drugs.current_pharmacy_stock')) }}
|
||||
{{ Form::number('pharmacy_stock', 0, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>-->
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reorder_level', __('drugs.re_order_level')) }}
|
||||
{{ Form::number('reorder_level', '', ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_price', __('drugs.cost_price')) }}
|
||||
{{ Form::number('cost_price', '', ['class'=>'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('account_id', __('drugs.income_account')) }}
|
||||
{{ Form::select('account_id', $income_accounts, null, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cog_account', __('drugs.cost_of_goods_account')) }}
|
||||
{{ Form::select('cog_account', $cost_of_goods_accounts, null, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('inventory_account', __('drugs.inventory_asset_account')) }}
|
||||
{{ Form::select('inventory_account', $inventory_asset_accounts, null, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('expiry_date', __('drugs.inventory_asset_account')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('expiry_date', '', ['class'=>'form-control', 'readonly', 'id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('non_insured_price', __('drugs.non_insured_price')) }}
|
||||
{{ Form::number('non_insured_price', '', ['class'=>'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('info_english', __('drugs.patient_info_in_english')) }}
|
||||
{{ Form::textArea('info_english', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('info_vernacular', __('drugs.patient_info_in_vernacular')) }}
|
||||
{{ Form::textArea('info_vernacular', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="background: #eceeef;">
|
||||
<h4>{{ __('drugs.select_from_list') }}</h4>
|
||||
<input id="select_all" type="checkbox"> <b>Select All</b><br><br>
|
||||
@foreach ($default_drugs as $defaultDrug)
|
||||
<div class="form-group">
|
||||
{{ Form::checkbox('selected_drugs[]', $defaultDrug['name'], false, ['class' => 'item_checkbox']) }} {{ $defaultDrug['name'] }}
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::button(__('drugs.next'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10 next']) }}
|
||||
{{ Form::button(__('drugs.skip'),['type'=>'submit','name' => 'skip', 'value' => 'skip','class'=>'btn btn-default waves-effect waves-light m-r-10']) }}
|
||||
@else
|
||||
|
||||
{{ Form::open(['route' => 'drugs.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drugs.drug_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('category_id', __('drugs.drug_category')) }}
|
||||
{{ Form::select('category_id', $drug_categories, null, ['class' => 'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('form_id', __('drugs.drug_form')) }}
|
||||
{{ Form::select('form_id', $drug_forms, null, ['class'=>'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('available', __('drugs.is_drug_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('drugs.yes') }} {{ Form::radio('available', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('drugs.no') }} {{ Form::radio('available', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('unit_id', __('drugs.drug_unit')) }}
|
||||
{{ Form::select('unit_id', $drug_units, null, ['class'=>'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pack', __('drugs.pack')) }}
|
||||
{{ Form::number('pack', '', ['class' => 'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('strength', __('drugs.strength')) }}
|
||||
{{ Form::number('strength', '', ['class' => 'form-control compulsory', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('supplier_id', __('drugs.supplier')) }}
|
||||
{{ Form::select('supplier_id', $suppliers, null, ['class'=>'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('package_unit_id', __('drugs.purchasing_package_unit')) }}
|
||||
{{ Form::select('package_unit_id', $package_units, null, ['class'=>'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('',__('drugs.does_package_unit_have_sub_packages'), ["class"=>'col-md-12']) }}
|
||||
{{ __('drugs.yes') }} {{ Form::radio('does_package_unit_have_sub_packages', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green', 'required', 'id' => 'does_have_sub_package2', 'onclick'=>'displaySubPackagesDivs()']) }}
|
||||
{{ __('drugs.no') }} {{ Form::radio('does_package_unit_have_sub_packages', 0, false, ['class' => 'check form-control have_sub_package', 'data-radio'=>'iradio_flat-green', 'required', 'id' => 'does_not_have_sub_package2', 'onclick'=>'displaySubPackagesDivs()']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_package_unit_div">
|
||||
{{ Form::label('quantity_in_each_package_unit', __('drugs.quantity_in_each_package_unit')) }}
|
||||
{{ Form::number('quantity_in_each_package_unit', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_sub_package_div">
|
||||
{{ Form::label('quantity_in_each_sub_package', __('drugs.quantity_in_each_sub_package')) }}
|
||||
{{ Form::number('quantity_in_each_sub_package', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_sub_package_div">
|
||||
{{ Form::label('number_of_sub_packages_in_main_package', __('drugs.number_of_sub_packages_in_main_package')) }}
|
||||
{{ Form::number('number_of_sub_packages_in_main_package', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!-- <div class="form-group">
|
||||
{{ Form::label('store_stock', __('drugs.current_store_stock')) }}
|
||||
{{ Form::number('store_stock', 0, ['class' => 'form-control compulsory', 'id' => 'store_stock']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pharmacy_stock', __('drugs.current_pharmacy_stock')) }}
|
||||
{{ Form::number('pharmacy_stock', 0, ['class' => 'form-control', 'id' => 'pharmacy_stock']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>-->
|
||||
|
||||
<div class="form-group" id="initial_div" style="display: none;">
|
||||
<div class="alert alert-info">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<span>
|
||||
{!! __('drugs.initial_stock_count_explanation') !!}
|
||||
</span>
|
||||
</div>
|
||||
{{ Form::label('is_initial_stock_count', __('drugs.is_initial_stock_count')) }}
|
||||
{{ Form::select('is_initial_stock_count', [0 => 'No', 1 => 'Yes'], null, ['class' => 'form-control compulsory','required']) }}
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reorder_level', __('drugs.re_order_level')) }}
|
||||
{{ Form::number('reorder_level', '', ['class' => 'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_price', __('drugs.cost_price')) }}
|
||||
{{ Form::number('cost_price', '', ['class'=>'form-control compulsory']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('account_id', __('drugs.income_account')) }}
|
||||
{{ Form::select('account_id', $income_accounts, null, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cog_account', __('drugs.cost_of_goods_account')) }}
|
||||
{{ Form::select('cog_account', $cost_of_goods_accounts, null, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('inventory_account', __('drugs.inventory_asset_account')) }}
|
||||
{{ Form::select('inventory_account', $inventory_asset_accounts, null, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('expiry_date', __('drugs.drug_expiry_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('expiry_date', '', ['class'=>'form-control compulsory', 'readonly', 'id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('', __('drugs.long_term'), ["class"=>'col-md-12']) }}
|
||||
{{ __('drugs.yes') }} {{ Form::radio('long_term', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('drugs.no') }} {{ Form::radio('long_term', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('non_insured_price', 'Cash Price') }}
|
||||
{{ Form::number('non_insured_price', '', ['class'=>'form-control compulsory', 'id' => 'non_insured_price']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
@php
|
||||
$price_list_categories = \Streamline\Models\PriceListCategories::select('patient_category_id', 'id')->get();
|
||||
@endphp
|
||||
|
||||
@foreach($price_list_categories as $record)
|
||||
<div class="form-group">
|
||||
{{ Form::label('non_insured_price', get_name($record->patient_category_id, 'id', 'name', 'patient_categories').' Price') }}
|
||||
{{ Form::hidden('price_list_category_id[]', $record->id) }}
|
||||
{{ Form::number('price_list_price[]', '', ['class'=>'form-control price_list_price']) }}
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('description', __('drugs.drug_description')) }}
|
||||
{{ Form::textArea('description', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('prompt', __('drugs.drug_prompt')) }}
|
||||
{{ Form::textArea('prompt', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('info_english', __('drugs.patient_info_in_english')) }}
|
||||
{{ Form::textArea('info_english', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('info_vernacular', __('drugs.patient_info_in_vernacular')) }}
|
||||
{{ Form::textArea('info_vernacular', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_text', __('symptoms.reference_area')) }}
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
{{ Form::text('reference_name[]', '', ['class'=>'form-control', 'placeholder' => 'Reference Name']) }}
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
{{ Form::url('reference_areas[]', '', ['class'=>'form-control', 'placeholder' => 'eg http://www.google.com']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 input_fields_wrap"></div>
|
||||
<div class="col-sm-12"><a class="add_field_button" style="color: blue;">{{ __('symptoms.add_more') }}</a></div>
|
||||
</div>
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-rounded btn-success waves-effect waves-light m-r-10 submit-btn']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-rounded btn-default waves-effect waves-light']) }}
|
||||
@endif
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@push('scripts')
|
||||
<!-- <script src="{{ asset('elite/js/validator.js') }}"></script> -->
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#datepicker-autoclose').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
|
||||
$(".next,.submit-btn").click(function (e) { // make sure that all compulsory fields have been filled out
|
||||
var empty_compulsory_fields = [];
|
||||
$(".compulsory").each(function () {
|
||||
if ($(this).val() == "") {
|
||||
var textname = $(this).attr('name');
|
||||
$(this).focus();
|
||||
empty_compulsory_fields.push(textname);
|
||||
$(this).css('border','1px solid #F08080');
|
||||
}
|
||||
});
|
||||
/* check if the array containing empty compulsory fields is not empty then return false */
|
||||
if (empty_compulsory_fields.length != 0) {
|
||||
alert("Please fill in all compulsory fields");
|
||||
console.log(empty_compulsory_fields);
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('#select_all').change(function() {
|
||||
if (this.checked === true) {
|
||||
$(".item_checkbox").each(function() {
|
||||
this.checked = true;
|
||||
});
|
||||
} else {
|
||||
$(".item_checkbox").each(function() {
|
||||
this.checked = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('#pharmacy_stock,#store_stock').change(function(e) {
|
||||
if ($('#pharmacy_stock').val() > 0 || $('#store_stock').val()) {
|
||||
$('#initial_div').show();
|
||||
}
|
||||
});
|
||||
|
||||
$('#non_insured_price').change(function(e) {
|
||||
var non_insured_price = $(this).val();
|
||||
if (non_insured_price > 0) {
|
||||
$(".price_list_price").each(function () {
|
||||
$(this).val(non_insured_price);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function displaySubPackagesDivs() {
|
||||
if (document.getElementById("does_have_sub_package1").checked) {
|
||||
document.querySelector(".quantity_in_each_package_unit_div").style.display = "block";
|
||||
document.querySelector(".quantity_in_each_sub_package_div").style.display = "none";
|
||||
}
|
||||
if (document.getElementById("does_not_have_sub_package1").checked) {
|
||||
document.querySelector(".quantity_in_each_package_unit_div").style.display = "block";
|
||||
document.querySelector(".quantity_in_each_sub_package_div").style.display = "none";
|
||||
}
|
||||
|
||||
if (document.getElementById("does_have_sub_package2").checked) {
|
||||
document.querySelector(".quantity_in_each_package_unit_div").style.display = "block";
|
||||
document.querySelector(".quantity_in_each_sub_package_div").style.display = "none";
|
||||
}
|
||||
if (document.getElementById("does_not_have_sub_package2").checked) {
|
||||
document.querySelector(".quantity_in_each_package_unit_div").style.display = "block";
|
||||
document.querySelector(".quantity_in_each_sub_package_div").style.display = "none";
|
||||
}
|
||||
}
|
||||
$(document).ready(function () {
|
||||
var max_fields = 4; //maximum input boxes allowed
|
||||
var wrapper = $(".input_fields_wrap"); //Fields wrapper
|
||||
|
||||
var x = 1; //initlal text box count
|
||||
$(".add_field_button").click(function (e) { //on add input button click
|
||||
e.preventDefault();
|
||||
if (x < max_fields) { //max input box allowed
|
||||
x++; //text box increment
|
||||
$(wrapper).append('<br><div class="row"><div class="col-sm-4"><input type="text" class="form-control compulsory" placeholder="Reference name" name="reference_name[]" required/></div>' +
|
||||
'<div class="col-sm-7"><input type="url" placeholder="eg http://www.google.com" class="form-control compulsory" name="reference_areas[]" required/></div>'
|
||||
+ '<a href="#" class="remove_field" style="color: maroon"><sup>X</sup></a></div>'); //add input box
|
||||
}else {
|
||||
$(".add_field_button").hide();
|
||||
alert('Only four references can be added.');
|
||||
}
|
||||
});
|
||||
|
||||
$(wrapper).on("click", ".remove_field", function (e) { //user click on remove text
|
||||
e.preventDefault();
|
||||
$(this).parent('div').remove();
|
||||
x--;
|
||||
})
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@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">{{ __('drugs.edit_drug') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($drug, ['method' => 'PUT', 'route' => ['drugs.update',$drug], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drugs.drug_name')) }}
|
||||
{{ Form::text('name', $drug->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('category_id', __('drugs.drug_category')) }}
|
||||
{{ Form::select('category_id', $drug_categories, $drug->category_id, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('form_id', __('drugs.drug_form')) }}
|
||||
{{ Form::select('form_id', $drug_forms, $drug->form_id, ['class'=>'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('available', __('drugs.is_drug_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('drugs.yes') }} {{ Form::radio('available', 1, $drug->available == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('drugs.no') }} {{ Form::radio('available', 0, $drug->available == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('unit_id', __('drugs.drug_unit')) }}
|
||||
{{ Form::select('unit_id', $drug_units, $drug->unit_id, ['class'=>'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pharmacy_stock', __('drugs.current_pharmacy_stock')) }}
|
||||
{{ Form::number('pharmacy_stock', $drug->pharmacy_stock, ['class'=>'form-control compulsory', 'required', 'readonly']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('store_stock', __('drugs.current_store_stock')) }}
|
||||
{{ Form::number('store_stock', $drug->quantity, ['class' => 'form-control compulsory', 'required', 'readonly']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reorder_level', __('drugs.re_order_level')) }}
|
||||
{{ Form::number('reorder_level', $drug->reorder_level, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('', __('drugs.long_term'), ["class"=>'col-md-12']) }}
|
||||
Yes {{ Form::radio('long_term', 1, $drug->long_term == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
No {{ Form::radio('long_term', 0, $drug->long_term == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('hssip', __('drugs.hssip')) }}
|
||||
{{ Form::text('hssip', $drug->hssip, ['class'=>'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('account_id', __('drugs.income_account')) }}
|
||||
{{ Form::select('account_id', $income_accounts, $drug->account_id, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cog_account', __('drugs.cost_of_goods_account')) }}
|
||||
{{ Form::select('cog_account', $cost_of_goods_accounts, $drug->cost_of_goods_account, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('inventory_account', __('drugs.inventory_asset_account')) }}
|
||||
{{ Form::select('inventory_account', $inventory_asset_accounts, $drug->inventory_account, ['class' => 'form-control']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
@php
|
||||
$reference_array = !empty($drug->reference_areas)? explode(",", $drug->reference_areas):[];
|
||||
$reference_name = !empty($drug->reference_name)? explode(",", $drug->reference_name): [];
|
||||
@endphp
|
||||
@if (!empty($reference_array) && !empty($reference_name))
|
||||
@for($i = 0; $i < count($reference_array); $i++)
|
||||
<div class="row form-group">
|
||||
<div class="col-sm-4">
|
||||
{{ Form::text('reference_name[]', $reference_name[$i] ?? '', ['class'=>'form-control', 'placeholder' => 'Reference Name']) }}
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
{{ Form::url('reference_areas[]', $reference_array[$i] ?? '', ['class'=>'form-control', 'placeholder' => 'eg http://www.google.com']) }}
|
||||
</div>
|
||||
</div>
|
||||
@endfor
|
||||
@if (count($reference_array) < 4)
|
||||
<div class="row form-group">
|
||||
<div class="col-sm-12 input_fields_wrap"></div>
|
||||
<div class="col-sm-12"><a class="add_field_button" style="color: blue;">{{ __('symptoms.add_more') }}</a></div>
|
||||
</div>
|
||||
@endif
|
||||
@else
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_text', __('symptoms.reference_area')) }}
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
{{ Form::text('reference_name[]', '', ['class'=>'form-control', 'placeholder' => 'Reference Name']) }}
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
{{ Form::url('reference_areas[]', '', ['class'=>'form-control', 'placeholder' => 'eg http://www.google.com']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 input_fields_wrap"></div>
|
||||
<div class="col-sm-12"><a class="add_field_button" style="color: blue;">{{ __('symptoms.add_more') }}</a></div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-rounded btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-rounded btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var max_fields = 4; //maximum input boxes allowed
|
||||
var wrapper = $(".input_fields_wrap"); //Fields wrapper
|
||||
let number = {{ count($reference_array) }};
|
||||
var x = number? number: 1; //initlal text box count
|
||||
$(".add_field_button").click(function (e) { //on add input button click
|
||||
e.preventDefault();
|
||||
if (x < max_fields) { //max input box allowed
|
||||
x++; //text box increment
|
||||
$(wrapper).append('<br><div class="row"><div class="col-sm-4"><input type="text" class="form-control compulsory" placeholder="Reference name" name="reference_name[]" required/></div><div class="help-block with-errors"></div>' +
|
||||
'<div class="col-sm-7"><input type="url" placeholder="eg http://www.google.com" class="form-control compulsory" name="reference_areas[]" required/></div><div class="help-block with-errors"></div>'
|
||||
+ '<a href="#" class="remove_field" style="color: maroon"><sup>X</sup></a></div>'); //add input box
|
||||
}else {
|
||||
$(".add_field_button").hide();
|
||||
alert('Only four references can be added.');
|
||||
}
|
||||
});
|
||||
|
||||
$(wrapper).on("click", ".remove_field", function (e) { //user click on remove text
|
||||
e.preventDefault();
|
||||
$(this).parent('div').remove();
|
||||
x--;
|
||||
})
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drugs.edit_all_drugs') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit_all_drugs') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('clinical_data::drugs.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
{{ Form::model($drugs, ['method' => 'ANY', 'route' => ['drugs.update_all', 'data-toggle' => 'validator']]) }}
|
||||
|
||||
<div style="float: right; margin-bottom: 5px;">
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>{{ __('drugs.id') }}</th>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.drug_form') }}</th>
|
||||
<th>{{ __('drugs.drug_unit') }}</th>
|
||||
<th>{{ __('drugs.pharmacy_stock') }}</th>
|
||||
<th>{{ __('drugs.store_stock') }}</th>
|
||||
<th>{{ __('drugs.re_order_level') }}</th>
|
||||
<th>{{ __('drugs.insurance_coverage') }}</th>
|
||||
<th>{{ __('drugs.long_term') }}</th>
|
||||
<th>{{ __('drugs.hssip') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th hidden>{{ __('drugs.id') }}</th>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.drug_form') }}</th>
|
||||
<th>{{ __('drugs.drug_unit') }}</th>
|
||||
<th>{{ __('drugs.pharmacy_stock') }}</th>
|
||||
<th>{{ __('drugs.store_stock') }}</th>
|
||||
<th>{{ __('drugs.re_order_level') }}</th>
|
||||
<th>{{ __('drugs.insurance_coverage') }}</th>
|
||||
<th>{{ __('drugs.long_term') }}</th>
|
||||
<th>{{ __('drugs.hssip') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
<tr>
|
||||
<td hidden>
|
||||
{{ Form::text('id[]', $drug->id, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
<p style="display: none">{{ $drug->name }}</p>
|
||||
{{ Form::text('name[]', $drug->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('form_id[]', $drug_forms, $drug->form_id, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('unit_id[]', $drug_units, $drug->unit_id, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('pharmacy_stock[]', $drug->pharmacy_stock, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('store_stock[]', $drug->store_stock, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('reorder_level[]', $drug->reorder_level, ['class'=>'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('insurance_coverage[]', [1 => 'Yes', 0 => 'No'], $drug->insurance_coverage, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('long_term[]', [1 => 'Yes', 0 => 'No'], $drug->long_term, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('hssip[]', $drug->hssip, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include('clinical_data::drugs.menu')
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
pageLength: 100,
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+98
@@ -0,0 +1,98 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drugs.edit_all_calculations') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit_all_calculations') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('clinical_data::drugs.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
{{ Form::model($drugs, ['method' => 'ANY', 'route' => ['drugs.update_all_calculations', 'data-toggle' => 'validator']]) }}
|
||||
|
||||
<div style="float: right; margin-bottom: 5px;">
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>{{ __('drugs.id') }}</th>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.drug_form') }}</th>
|
||||
<th>{{ __('drugs.drug_pack') }}</th>
|
||||
<th>{{ __('drugs.drug_strength') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th hidden>{{ __('drugs.id') }}</th>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.drug_form') }}</th>
|
||||
<th>{{ __('drugs.drug_pack') }}</th>
|
||||
<th>{{ __('drugs.drug_strength') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
<tr>
|
||||
<td hidden>
|
||||
{{ Form::text('id[]', $drug->id, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
<p style="display: none">{{ $drug->name }}</p>
|
||||
{{ Form::text('name[]', $drug->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('form_id[]', $drug_forms, $drug->form_id, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('pack[]', $drug->pack, ['class' => 'form-control', 'step' => '.01']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('strength[]', $drug->strength, ['class' => 'form-control', 'step' => '.01']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit', 'class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include('clinical_data::drugs.menu')
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
pageLength: 100
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+169
@@ -0,0 +1,169 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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>
|
||||
th, td { white-space: nowrap; }
|
||||
</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">{{ __('drugs.edit_all_pricing') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit_all_pricing') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('clinical_data::drugs.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
{{ Form::model($drugs, ['method' => 'ANY', 'route' => ['drugs.update_all_pricing']]) }}
|
||||
|
||||
@php $id = 1; @endphp
|
||||
|
||||
<div style="float: right; margin-bottom: 5px;">
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>{{ __('drugs.id') }}</th>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.buying') }}</th>
|
||||
<th>{{ __('drugs.non_insured_price') }}</th>
|
||||
@if(get_ward_prescription_model() == 2)
|
||||
<th>{{ __('drugs.pf_adult') }}</th>
|
||||
<th>{{ __('drugs.daily_cost_adult') }}</th>
|
||||
<th>{{ __('drugs.pf_children') }}</th>
|
||||
<th>{{ __('drugs.daily_cost_children') }}</th>
|
||||
<th>{{ __('drugs.pf_infant') }}</th>
|
||||
<th>{{ __('drugs.daily_cost_infant') }}</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th hidden>{{ __('drugs.id') }}</th>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.buying') }}</th>
|
||||
<th>{{ __('drugs.non_insured_price') }}</th>
|
||||
@if(get_ward_prescription_model() == 2)
|
||||
<th>{{ __('drugs.pf_adult') }}</th>
|
||||
<th>{{ __('drugs.daily_cost_adult') }}</th>
|
||||
<th>{{ __('drugs.pf_children') }}</th>
|
||||
<th>{{ __('drugs.daily_cost_children') }}</th>
|
||||
<th>{{ __('drugs.pf_infant') }}</th>
|
||||
<th>{{ __('drugs.daily_cost_infant') }}</th>
|
||||
@endif
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
@php
|
||||
$non_insured_price_id = 'non_insured_price' . $id;
|
||||
$pricing_factor_adult = 'pricing_factor_adult' . $id;
|
||||
$dc_adult = 'ip_daily_cost_adult' . $id;
|
||||
$pricing_factor_children = 'pricing_factor_children' . $id;
|
||||
$dc_children = 'ip_daily_cost_children' . $id;
|
||||
$pricing_factor_infant = 'pricing_factor_infant' . $id;
|
||||
$dc_infant = 'ip_daily_cost_infant' . $id;
|
||||
@endphp
|
||||
<tr>
|
||||
<td hidden>
|
||||
{{ Form::text('id[]', $drug->id, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
<p style="display: none">{{ $drug->name }}</p>
|
||||
{{ Form::text('name[]', $drug->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('cost_price[]', $drug->cost_price , ['class' => 'form-control compulsory']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('non_insured_price[]', $drug->non_insured_price , ['class' => 'form-control compulsory', 'onchange' => 'calcPrices(' . $id . ');', 'id' => $non_insured_price_id]) }}
|
||||
</td>
|
||||
@if(get_ward_prescription_model() == 2)
|
||||
<td>
|
||||
{{ Form::number('pricing_factor_adult[]', $drug->pricing_factor_adult , ['class' => 'form-control compulsory', 'onchange' => 'calcPrices(' . $id . ');', 'step' => '0.01', 'id' => $pricing_factor_adult]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('ip_daily_cost_adult[]', ($drug->pricing_factor_adult * $drug->non_insured_price) , ['class' => 'form-control', 'readonly' => 'true', 'id' => $dc_adult]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('pricing_factor_children[]', $drug->pricing_factor_children , ['class' => 'form-control compulsory', 'onchange' => 'calcPrices(' . $id . ');', 'step' => '0.01', 'id' => $pricing_factor_children]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('ip_daily_cost_children[]', ($drug->pricing_factor_children * $drug->non_insured_price) , ['class' => 'form-control', 'readonly' => 'true', 'id' => $dc_children]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('pricing_factor_infant[]', $drug->pricing_factor_infant , ['class' => 'form-control compulsory', 'onchange' => 'calcPrices(' . $id . ');', 'step' => '0.01', 'id' => $pricing_factor_infant]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('ip_daily_cost_infant[]', ($drug->pricing_factor_infant * $drug->non_insured_price) , ['class' => 'form-control', 'readonly' => 'true', 'id' => $dc_infant]) }}
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
@php $id++ @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include('clinical_data::drugs.menu')
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
pageLength: 200
|
||||
});
|
||||
|
||||
function calcPrices(id) {
|
||||
calcAdult(id);
|
||||
calcChild(id);
|
||||
calcInfant(id);
|
||||
}
|
||||
|
||||
function calcAdult(id) {
|
||||
let price_factor = $('#pricing_factor_adult' + id).val();
|
||||
let non_insured_price = $('#non_insured_price' + id).val();
|
||||
$('#ip_daily_cost_adult' + id).val(price_factor * non_insured_price);
|
||||
}
|
||||
|
||||
function calcChild(id) {
|
||||
let price_factor = $('#pricing_factor_children' + id).val();
|
||||
let non_insured_price = $('#non_insured_price' + id).val();
|
||||
$('#ip_daily_cost_children' + id).val(price_factor * non_insured_price);
|
||||
}
|
||||
|
||||
function calcInfant(id) {
|
||||
let price_factor = $('#pricing_factor_infant' + id).val();
|
||||
let non_insured_price = $('#non_insured_price' + id).val();
|
||||
$('#ip_daily_cost_infant' + id).val(price_factor * non_insured_price);
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+103
@@ -0,0 +1,103 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drugs.edit_all_prompts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit_all_prompts') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('clinical_data::drugs.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
{{ Form::model($drugs, ['method' => 'ANY', 'route' => ['drugs.update_all_prompts', 'data-toggle' => 'validator']]) }}
|
||||
|
||||
<div style="float: right; margin-bottom: 5px;">
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>{{ __('drugs.id') }}</th>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.drug_prompt') }}</th>
|
||||
<th>{{ __('drugs.english_info') }}</th>
|
||||
<th>{{ __('drugs.vernacular_info') }}</th>
|
||||
<th>{{ __('drugs.pharmacy_comment') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th hidden>{{ __('drugs.id') }}</th>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.drug_prompt') }}</th>
|
||||
<th>{{ __('drugs.english_info') }}</th>
|
||||
<th>{{ __('drugs.vernacular_info') }}</th>
|
||||
<th>{{ __('drugs.pharmacy_comment') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
<tr>
|
||||
<td hidden>
|
||||
{{ Form::text('id[]', $drug->id, ['class' => 'form-control']) }}
|
||||
</td>
|
||||
<td>
|
||||
<p style="display: none">{{ $drug->name }}</p>
|
||||
{{ Form::text('name[]', $drug->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textArea('prompt[]', $drug->prompt, ['class' => 'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textArea('info_english[]', $drug->info_english, ['class' => 'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textArea('info_vernacular[]', $drug->info_vernacular, ['class' => 'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textArea('pharmacy_comment[]', $drug->pharmacy_comment, ['class' => 'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include('clinical_data::drugs.menu')
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
pageLength: 100
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+55
@@ -0,0 +1,55 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('drugs.edit_drug_calculation') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit_calculation') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($drug, ['method' => 'PUT', 'route' => ['drugs.update',$drug]]) }}
|
||||
|
||||
<!--- hidden input to differentiate store value -->
|
||||
{{ Form::hidden('id', 2) }}
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drugs.drug_name')) }}
|
||||
{{ Form::text('name', $drug->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('form_id', __('drugs.drug_form')) }}
|
||||
{{ Form::select('form_id', $drug_forms, null, ['class'=>'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pack', __('drugs.drug_pack')) }}
|
||||
{{ Form::number('pack', $drug->pack, ['class'=>'form-control compulsory', 'step' => '.01']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('strength', __('drugs.drug_strength')) }}
|
||||
{{ Form::number('strength', $drug->strength, ['class' => 'form-control compulsory', 'step' => '.01']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
Executable
+114
@@ -0,0 +1,114 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('drugs.edit_drug_pricing') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit_pricing') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($drug, ['method' => 'PUT', 'route' => ['drugs.update',$drug]]) }}
|
||||
|
||||
{{ Form::hidden('id', 1) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drugs.drug_name')) }}
|
||||
{{ Form::text('name', $drug->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_price', __('drugs.buying')) }}
|
||||
{{ Form::number('cost_price', $drug->cost_price , ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('non_insured_price', __('drugs.non_insured_price')) }}
|
||||
{{ Form::number('non_insured_price', $drug->non_insured_price , ['class' => 'form-control compulsory', 'id' => 'non_insured_price']) }}
|
||||
</div>
|
||||
|
||||
@if($drug->price_list_category && $drug->price_list_category != '')
|
||||
@php
|
||||
$price_list_categories = explode(",", $drug->price_list_category);
|
||||
$price_list_prices = explode(",", $drug->price_list_price);
|
||||
@endphp
|
||||
|
||||
@for($i = 0; $i < count($price_list_categories); $i++)
|
||||
<div class="form-group">
|
||||
{{ Form::label('non_insured_price', get_name(get_name($price_list_categories[$i], 'id', 'price_list_categories', 'price_list_categories'), 'id', 'name', 'patient_categories').' Price') }}
|
||||
{{ Form::hidden('price_list_category_id[]', $price_list_categories[$i]) }}
|
||||
{{ Form::number('price_list_price[]', $price_list_prices[$i], ['class'=>'form-control price_list_price']) }}
|
||||
</div>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(get_ward_prescription_model() == 2)
|
||||
<div class="form-group">
|
||||
{{ Form::label('pricing_factor_adult', __('drugs.pf_adult')) }}
|
||||
{{ Form::number('pricing_factor_adult', $drug->pricing_factor_adult , ['class' => 'form-control compulsory', 'onchange' => 'calcAdult(this.value);', 'step' => '0.01']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('ip_daily_cost_adult', __('drugs.daily_cost_adult')) }}
|
||||
{{ Form::number('ip_daily_cost_adult', $drug->ip_daily_cost_adult , ['class' => 'form-control', 'readonly' => 'true', 'id' => 'ip_daily_cost_adult']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pricing_factor_children', __('drugs.pf_children')) }}
|
||||
{{ Form::number('pricing_factor_children', $drug->pricing_factor_children , ['class' => 'form-control compulsory', 'onchange' => 'calcChild(this.value);', 'step' => '0.01']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('ip_daily_cost_children', __('drugs.daily_cost_children')) }}
|
||||
{{ Form::number('ip_daily_cost_children', $drug->ip_daily_cost_children , ['class' => 'form-control', 'readonly' => 'true', 'id' => 'ip_daily_cost_children']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pricing_factor_infant', __('drugs.pf_infant')) }}
|
||||
{{ Form::number('pricing_factor_infant', $drug->pricing_factor_infant , ['class' => 'form-control compulsory', 'onchange' => 'calcInfant(this.value);', 'step' => '0.01']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('ip_daily_cost_infant', __('drugs.daily_cost_infant')) }}
|
||||
{{ Form::number('ip_daily_cost_infant', $drug->ip_daily_cost_infant , ['class' => 'form-control', 'readonly' => 'true', 'id' => 'ip_daily_cost_infant']) }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function calcAdult(price) {
|
||||
let non_insured_price = document.getElementById('non_insured_price').value;
|
||||
document.getElementById('ip_daily_cost_adult').value = price * non_insured_price;
|
||||
}
|
||||
|
||||
function calcChild(price) {
|
||||
let non_insured_price = document.getElementById('non_insured_price').value;
|
||||
document.getElementById('ip_daily_cost_children').value = price * non_insured_price;
|
||||
}
|
||||
|
||||
function calcInfant(price) {
|
||||
let non_insured_price = document.getElementById('non_insured_price').value;
|
||||
document.getElementById('ip_daily_cost_infant').value = price * non_insured_price;
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
Executable
+65
@@ -0,0 +1,65 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('drugs.edit_drug_prompt') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit_prompt') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($drug, ['method' => 'PUT', 'route' => ['drugs.update',$drug]]) }}
|
||||
|
||||
<!--- hidden input to differentiate store value -->
|
||||
{{ Form::hidden('id', 0) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drugs.drug_name')) }}
|
||||
{{ Form::text('name', $drug->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('prompt', __('drugs.drug_prompt')) }}
|
||||
{{ Form::textArea('prompt', $drug->prompt, ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('info_english', __('drugs.english_info')) }}
|
||||
{{ Form::textArea('info_english', $drug->info_english, ['class' => 'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('info_vernacular', __('drugs.vernacular_info')) }}
|
||||
{{ Form::textArea('info_vernacular', $drug->info_vernacular, ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pharmacy_comment', __('drugs.pharmacy_comment')) }}
|
||||
{{ Form::textArea('pharmacy_comment', $drug->pharmacy_comment, ['class' => 'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('description', __('drugs.drug_description')) }}
|
||||
{{ Form::textArea('description', $drug->description, ['class' => 'form-control', 'rows' => 4]) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('drugs.edit_drug_prompt') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.edit_prompt') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($drug, ['method' => 'ANY', 'route' => ['drugs.update_purchase_packaging',$drug]]) }}
|
||||
|
||||
<!--- hidden input to differentiate store value -->
|
||||
{{ Form::hidden('id', $drug->id) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('drugs.drug_name')) }}
|
||||
{{ Form::text('name', $drug->name, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('',__('drugs.does_package_unit_have_sub_packages')) }}
|
||||
<br>
|
||||
{{ __('drugs.yes') }} {{ Form::radio('does_package_unit_have_sub_packages', 1, false, ['class' => 'have_sub_package', 'required', 'id' => 'does_have_sub_package1', 'onclick'=>'displaySubPackagesDivs()']) }}
|
||||
{{ __('drugs.no') }} {{ Form::radio('does_package_unit_have_sub_packages', 0, false, ['class' => 'have_sub_package', 'required', 'id' => 'does_not_have_sub_package1', 'onclick'=>'displaySubPackagesDivs()']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_package_unit_div">
|
||||
{{ Form::label('quantity_in_each_package_unit', __('drugs.quantity_in_each_package_unit')) }}
|
||||
{{ Form::number('quantity_in_each_package_unit', $drug->quantity_in_each_package_unit, ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_sub_package_div">
|
||||
{{ Form::label('quantity_in_each_sub_package', __('drugs.quantity_in_each_sub_package')) }}
|
||||
{{ Form::number('quantity_in_each_sub_package', $drug->quantity_in_each_sub_package, ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group quantity_in_each_sub_package_div">
|
||||
{{ Form::label('number_of_sub_packages_in_main_package', __('drugs.number_of_sub_packages_in_main_package')) }}
|
||||
{{ Form::number('number_of_sub_packages_in_main_package', $drug->number_of_sub_packages_in_main_package_unit, ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type' => 'submit','class' =>' btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('drugs.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drugs.activate_drugs') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-muted m-b-30">{{ __('drugs.export_data_to_csv_and_excel') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.selling') }}</th>
|
||||
<th>{{ __('drugs.prompt') }}</th>
|
||||
<th>{{ __('drugs.pharmacy') }}</th>
|
||||
<th>{{ __('drugs.store') }}</th>
|
||||
<th>{{ __('drugs.vernacular_info') }}</th>
|
||||
<th>{{ __('drugs.english_info') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.selling') }}</th>
|
||||
<th>{{ __('drugs.prompt') }}</th>
|
||||
<th>{{ __('drugs.pharmacy') }}</th>
|
||||
<th>{{ __('drugs.store') }}</th>
|
||||
<th>{{ __('drugs.vernacular_info') }}</th>
|
||||
<th>{{ __('drugs.english_info') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
<tr>
|
||||
<td>{{ get_drug_name($drug->id) }}</td>
|
||||
<td>{{ $drug->selling_price }}</td>
|
||||
<td>{{ $drug->prompt }}</td>
|
||||
<td>{{ $drug->pharmacy_stock }}</td>
|
||||
<td>{{ $drug->store_stock}}</td>
|
||||
<td>{{ $drug->info_vernacular }}</td>
|
||||
<td>{{ $drug->info_english }}</td>
|
||||
<td>
|
||||
{{ Form::model($drug->id ,['method' => 'POST', 'route' => ['drugs.activate', $drug->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('drugs.are_you_sure')?>')"><i class="fa fa-check"></i> {{ __('drugs.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+239
@@ -0,0 +1,239 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drugs.drugs') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('clinical_data::drugs.menu')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<!--<p class="text-muted m-b-30">Export data to Copy, CSV, Excel, PDF & Print</p>-->
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.non_insured_price') }}</th>
|
||||
<th>{{ __('drugs.prompts_and_references') }}</th>
|
||||
<th>{{ __('drugs.pharmacy') }}</th>
|
||||
<th>{{ __('drugs.store') }}</th>
|
||||
<th>{{ __('drugs.vernacular_info') }}</th>
|
||||
<th>{{ __('drugs.english_info') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.non_insured_price') }}</th>
|
||||
<th>{{ __('drugs.prompts_and_references') }}</th>
|
||||
<th>{{ __('drugs.pharmacy') }}</th>
|
||||
<th>{{ __('drugs.store') }}</th>
|
||||
<th>{{ __('drugs.vernacular_info') }}</th>
|
||||
<th>{{ __('drugs.english_info') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
<tr>
|
||||
<td>{{ get_drug_name($drug->id) }}</td>
|
||||
<td>{{ $drug->non_insured_price }}</td>
|
||||
@php
|
||||
$reference_array = explode(",", $drug->reference_areas);
|
||||
$reference_name = explode(",", $drug->reference_name);
|
||||
$drug_pharmacy_stock = $drug_store_stock = 0;
|
||||
|
||||
$batch_records = \Streamline\Models\ItemBatchWatcher::where(['item_type' => 1, 'item_id' => $drug->id])->get();
|
||||
if (count($batch_records) > 0) {
|
||||
foreach ($batch_records as $batch_record) {
|
||||
$drug_store_stock += $batch_record->store_stock;
|
||||
$drug_pharmacy_stock += $batch_record->pharmacy_stock;
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
<td>
|
||||
{{ $drug->prompt }} <br>
|
||||
@for ($i=0; $i<count($reference_array); $i++)
|
||||
<br><a style="font-weight:normal; color: red" href="{{ $reference_array[$i] ?? '' }}" target="blank">{{ $reference_name[$i] ?? '' }}</a>
|
||||
@endfor
|
||||
{{-- <a style="font-weight:normal; color: red" href="{{ $reference_array[0] }}" target="blank">{{ $reference_name[0] }}</a> --}}
|
||||
</td>
|
||||
<td>{{ $drug_pharmacy_stock }}</td>
|
||||
<td>{{ $drug_store_stock}}</td>
|
||||
<td>{{ $drug->info_vernacular }}</td>
|
||||
<td>{{ $drug->info_english }}</td>
|
||||
<td>
|
||||
@if( Auth::user()->can('drug-edit'))
|
||||
<a href="/drugs/{{ $drug->id }}/edit/" class="btn btn-rounded btn-warning"><i class="fa fa-pencil"></i> {{ __('drugs.edit') }}</a>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(Auth::user()->can('drug-delete') && empty($drug->pharmacy_stock) && empty($drug->store_stock) && empty($drug->opening_stock) && empty($ordered_drugs[$drug->id]))
|
||||
{{ Form::model($drug->id ,['method' => 'DELETE', 'route' => ['drugs.destroy', $drug->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-danger" onclick="return confirm('<?php echo __('insurance_groups.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('drugs.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
@elseif (Auth::user()->can('drug-delete') && (!empty($drug->pharmacy_stock) || !empty($drug->store_stock) || !empty($drug->opening_stock)))
|
||||
<b class="text-success">Still Stocked</b>
|
||||
@elseif (Auth::user()->can('drug-delete') && !empty($ordered_drugs[$drug->id]))
|
||||
<b class="text-success">Drug was issued</b>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(Auth::user()->can('drug-edit'))
|
||||
<button type="button" class="btn btn-rounded btn-primary" data-toggle="modal" data-target="#myModal" onclick="setButtonUrls({{ $drug->id }})">{{ __('drugs.other_options') }}</button>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal -->
|
||||
<div id="myModal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<a href="" class="btn btn-block btn-rounded btn-warning" id="drug_calcs"><i class="fa fa-pencil"></i> <span style="margin-left: 10px;">
|
||||
<strong>{{ __('drugs.edit_drug_calculations') }}</strong></span></a>
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<a href="" class="btn btn-block btn-rounded btn-warning" id="drug_price"><i class="fa fa-pencil"></i> <span style="margin-left: 10px;">
|
||||
<strong>{{ __('drugs.edit_drug_pricing') }}</strong></span></a>
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<a href="" class="btn btn-block btn-rounded btn-warning" id="drug_prompt"><i class="fa fa-pencil"></i> <span style="margin-left: 10px;">
|
||||
<strong>{{ __('drugs.edit_drug_prompt') }}</strong></span></a>
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<a href="" class="btn btn-block btn-rounded btn-warning" id="drug_package_unit"><i class="fa fa-pencil"></i> <span style="margin-left: 10px;">
|
||||
<strong>{{ __('drugs.edit_package_units_details') }}</strong></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function setButtonUrls(id){
|
||||
let drug_calcs = document.getElementById('drug_calcs');
|
||||
drug_calcs.href = "/drugs/edit/drugs_calculations/" + id;
|
||||
let drug_price = document.getElementById('drug_price');
|
||||
drug_price.href = "/drugs/edit/drugs_pricing/" + id;
|
||||
let drug_prompt = document.getElementById('drug_prompt');
|
||||
drug_prompt.href = "/drugs/edit/drugs_prompts/" + id;
|
||||
let drug_purchase_details = document.getElementById('drug_package_unit');
|
||||
drug_purchase_details.href = "/edit_items_purchase_packaging/" + id;
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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 src="{{ asset('elite/tables/js/buttons.colVis.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
ordering:false,
|
||||
pageLength: 100,
|
||||
buttons: [
|
||||
'copy',
|
||||
{ extend: 'csv',
|
||||
message: 'LIST OF DRUGS'
|
||||
},
|
||||
{ extend: 'excel',
|
||||
message: 'LIST OF DRUGS',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 4, 5 ]
|
||||
},
|
||||
sheetName: 'LIST OF DRUGS ON STREAMLINE'
|
||||
},
|
||||
{ extend: 'pdf',
|
||||
message: 'LIST OF DRUGS',
|
||||
orientation: 'landscape',
|
||||
pageSize: 'LETTER',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 4, 5 ]
|
||||
},
|
||||
customize: function(doc) {
|
||||
doc.defaultStyle.fontSize = 10;
|
||||
// doc.styles.tableHeader.alignment = 'left';
|
||||
}
|
||||
},
|
||||
{ extend: 'print',
|
||||
message: 'LIST OF DRUGS',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 4, 5 ]
|
||||
},
|
||||
customize: function (win) {
|
||||
$(win.document.body)
|
||||
.css('font-size', '10pt')
|
||||
.css('background', '#fff')
|
||||
.prepend(
|
||||
'<img src="<?php echo asset('uploads/logo/logo-sm.png'); ?>" style="position:absolute; top:0; right:0;" />'
|
||||
);
|
||||
$(win.document.body).find('table')
|
||||
.addClass('compact')
|
||||
.css('font-size', 'inherit');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+143
@@ -0,0 +1,143 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@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">{{ __('drugs.expired_drugs') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.expiring') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'drugs.index_drugs_expiring']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('time_period', __('drugs.expiring_with_in')) }}
|
||||
{{ Form::select('time_period', ['1' => __('drugs.1_week'), '2' => __('drugs.2_weeks'), '4' => __('drugs.1_month'), '3' => __('stores.date_range'), '0' => __('drugs.expired_drugs')], $range, ['class' => 'form-control', 'id'=>'time_period']) }}
|
||||
</div>
|
||||
<div class="form-group" style="display: none;" id="start-date-div">
|
||||
{{ Form::label('start_date', "Start Date") }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date',$started ?? '',['class' => 'form-control compulsory', 'id'=>'datepicker-from']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="display: none;" id="end-date-div">
|
||||
{{ Form::label('end_date', "End Date") }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', $ended ?? '',['class' => 'form-control compulsory','id'=>'datepicker-to']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('drugs.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.stock') }}</th>
|
||||
<th class="shown_input">{{ __('drugs.batch_details') }}</th>
|
||||
<th>{{ __('drugs.expiry_date') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.stock') }}</th>
|
||||
<th class="shown_input">{{ __('drugs.batch_details') }}</th>
|
||||
<th>{{ __('drugs.expiry_date') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
<tr>
|
||||
<td>{{ get_drug_name($drug->item_id) }}</td>
|
||||
<td>{{ ($drug->store_stock ?? 0) + ($drug->pharmacy_stock ?? 0) + ($drug->ward_stock ?? 0)}}</td>
|
||||
<td>
|
||||
{{ $drug->batch_number }}
|
||||
</td>
|
||||
<td>{{ streamline_date($drug->expiry_date) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
let range = {{ $range }};
|
||||
$('#table').DataTable({
|
||||
pageLength: 100,
|
||||
});
|
||||
|
||||
$('#datepicker-to, #datepicker-from').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
if(range == '3') {
|
||||
$('#end-date-div, #start-date-div').show();
|
||||
$('#datepicker-to, #datepicker-from').prop('required', true);
|
||||
}
|
||||
$('#time_period').change(function() {
|
||||
var val = $(this).val();
|
||||
if(val == '3'){
|
||||
$('#end-date-div, #start-date-div').show();
|
||||
$('#datepicker-to, #datepicker-from').prop('required', true);
|
||||
}
|
||||
else {
|
||||
$('#end-date-div, #start-date-div').hide();
|
||||
$('#datepicker-to, #datepicker-from').prop('required', false);
|
||||
$('#datepicker-to, #datepicker-from').val('');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+81
@@ -0,0 +1,81 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
@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">{{ __('drugs.drugs_out_of_stock') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('drugs.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('drugs.index') }}">{{ __('drugs.drugs') }}</a></li>
|
||||
<li class="active">{{ __('drugs.out_of_stock') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('drugs.export_data_to_csv_and_excel') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.store_stock') }}</th>
|
||||
<th>{{ __('drugs.expiry_date') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('drugs.drug_name') }}</th>
|
||||
<th>{{ __('drugs.store_stock') }}</th>
|
||||
<th>{{ __('drugs.expiry_date') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
<tr>
|
||||
<td>{{ get_drug_name($drug->id) }}</td>
|
||||
<td>{{ $drug->store_stock}}</td>
|
||||
<td>{{ streamline_date($drug->expiry_date) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="/drugs/bulk_create" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 10px">{{ __('drugs.add_bulk_drugs') }}</span></a>
|
||||
<a href="/drugs/edit/all" class="nav-item btn btn-warning" style="border-radius: 5px;"><i class="fa fa-pencil"></i> <span style="margin-left: 10px">{{ __('drugs.edit_all_drugs') }}</span></a>
|
||||
<a href="/drugs/edit/all_prompts" class="nav-item btn btn-warning" style="border-radius: 5px;"><i class="fa fa-pencil"></i> <span style="margin-left: 10px">{{ __('drugs.edit_all_prompts') }}</span></a>
|
||||
<a href="/drugs/edit/all_calculations" class="nav-item btn btn-warning" style="border-radius: 5px;"><i class="fa fa-pencil"></i> <span style="margin-left: 10px">{{ __('drugs.edit_all_calculations') }}</span></a>
|
||||
<a href="/drugs/edit/all_pricing" class="nav-item btn btn-warning" style="border-radius: 5px;"><i class="fa fa-pencil"></i> <span style="margin-left: 10px">{{ __('drugs.edit_all_pricing') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
@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">{{ __('clinical_data.add_opticals') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="/opticals/">{{ __('clinical_data.opticals') }}</a></li>
|
||||
<li class="active">Create</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('clinical_data::eye_glasses.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'opticals.store' , 'data-toggle' => 'validator']) }}
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', 'Name') }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('price', 'Buying price') }}
|
||||
{{ Form::number('price', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group non_insured_price_div">
|
||||
{{ Form::label('non_insured_price', 'Cash Price') }}
|
||||
{{ Form::number('non_insured_price', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('account_id', 'Income Account') }}
|
||||
{{ Form::select('account_id', $chart_of_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_of_goods_account', 'Cost of Goods Account') }}
|
||||
{{ Form::select('cost_of_goods_account', $cost_of_goods_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('inventory_account', 'Inventory Asset Account') }}
|
||||
{{ Form::select('inventory_account', $inventory_asset_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user