Files
streamline-emr/docker/statistics/Modules/Investigations/Resources/views/radiologies/edit_all.blade.php
T
2025-03-31 03:46:05 +03:00

112 lines
5.0 KiB
PHP

@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/select2/select2.min.css') }}" rel="stylesheet" />
<style>
th{
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">{{ __('investigations.edit_investigation') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('investigations.dashboard') }}</a></li>
<li><a href="/investigations/index">{{ __('investigations.investigations') }}</a></li>
<li class="active">{{ __('investigations.edit_investigation') }}</li>
</ol>
</div>
</div>
@include('investigations::radiologies.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::model($radiologies, ['method' => 'ANY', 'route' => ['radiology.update_all', 'data-toggle' => 'validator']]) }}
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th hidden></th>
<th>{{ __('clinical_data.name') }}</th>
<th>{{ __('clinical_data.item_cost_price') }}</th>
<th>{{ __('clinical_data.payables_account') }}</th>
<th>{{ __('clinical_data.expenses_account') }}</th>
<th>{{ __('clinical_data.form') }}</th>
<th>{{ __('labs.reorder_level') }}</th>
</tr>
</thead>
<tbody>
@foreach($radiologies as $investigation)
<tr>
<td hidden>{{ Form::text('id[]', $investigation->id, ['class' => 'form-control']) }}</td>
<td>
<p style="display: none">{{ $investigation->name }}</p>
{{ Form::text('name[]', $investigation->name, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</td>
<td>{{ Form::number('cost_price[]', $investigation->cost_price, ['class' => 'form-control compulsory', 'required']) }}</td>
<td>{{ Form::select('payables_account_id[]',$payables_accounts,$investigation->payables_account_id,['class' => 'form-control drop']) }}</td>
<td>{{ Form::select('expenses_account_id[]',$expense_accounts,$investigation->expenses_account_id,['class' => 'form-control drop']) }}</td>
<td>{{ Form::select('form_id[]',$forms,$investigation->form_id,['class' => 'form-control drop']) }}</td>
<td>{{ Form::number('re_order_level[]',$investigation->reorder_level,['class' => 'form-control ']) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
{{ Form::button(__('investigations.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('investigations.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 src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
<script>
$(document).ready(function () {
$('.table').DataTable({
dom: 'Bfrtip',
pageLength: 50,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
$(".drop").select2({
placeholder: "-- select --"
});
});
</script>
@endpush