resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -0,0 +1,141 @@
@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">{{ __('wards.wards') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('wards.dashboard') }}</a></li>
<li class="active">{{ __('wards.wards') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('ward_management::wards.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>{{ __('wards.ward_name') }}</th>
<th>{{ __('wards.hmis_ward') }}</th>
<th>{{ __('wards.type') }}</th>
<th>{{ __('wards.ward_beds') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>{{ __('wards.ward_name') }}</th>
<th>{{ __('wards.hmis_ward') }}</th>
<th>{{ __('wards.type') }}</th>
<th>{{ __('wards.ward_beds') }}</th>
<th></th>
<th></th>
</tr>
</tfoot>
<tbody>
@foreach($wards as $ward)
<tr>
<td>{{ $ward->name }}</td>
<td>{{ $ward->hmis_ward }}</td>
<td>{{ $ward_types[$ward->type]?? '' }}</td>
<td>{{ $ward->beds }}</td>
<td>
<a href="/wards/{{ $ward->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('wards.edit') }}</a>
</td>
<td>
@if (empty($inpatient_wards[$ward->id]))
{{ Form::model($ward->id ,['method' => 'DELETE', 'route' => ['wards.destroy', $ward->id]]) }}
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('wards.are_you_sure');?>')"><i class="fa fa-trash"></i> {{ __('wards.delete') }}</button>
{{ Form::close() }}
@else
<b class="text-success">Ward 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 src="{{ asset('elite/tables/js/buttons.colVis.min.js') }}"></script>
<script type="text/javascript">
$('.table').DataTable({
dom: 'Bfrtip',
pageLength: 20,
order: [],
buttons: [
'copy',
{extend: 'csv',
message: '<?php echo __('wards.list_of_wards');?>'
},
{extend: 'excel',
message: '<?php echo __('wards.list_of_wards');?>',
exportOptions: {
columns: [0, 1]
},
sheetName: '<?php echo __('wards.list_of_wards');?>'
},
{extend: 'pdf',
message: '<?php echo __('wards.list_of_wards');?>',
orientation: 'portrait',
pageSize: 'LETTER',
exportOptions: {
columns: [0, 1]
},
customize: function (doc) {
doc.defaultStyle.fontSize = 10;
// doc.styles.tableHeader.alignment = 'left';
}
},
{extend: 'print',
message: '<?php echo __('wards.list_of_wards');?>',
exportOptions: {
columns: [0, 1]
},
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 table-bordered')
.css('font-size', 'inherit');
}
}
]
});
</script>
@endpush