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,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">{{ __('insurance_benefits.insurance_benefits') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
<li class="active">{{ __('insurance_benefits.insurance_benefits') }}</li>
</ol>
</div>
</div>
@include('insurance::insurance_benefits.menu')
<div class="white-box">
@include('flash::message')
<div class="table-responsive">
<table id="table" class="table table-striped color-bordered-table success-bordered-table table-hover">
<thead>
<tr>
<th>{{ __('insurance_benefits.benefit_name') }}</th>
<th>{{ __('insurance_benefits.plan') }}</th>
<th>{{ __('insurance_benefits.waiting_period_days') }}</th>
<th>{{ __('insurance_benefits.fee') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
<th>{{ __('insurance_benefits.opd_percentage') }}</th>
<th>{{ __('insurance_benefits.ipd_percentage') }}</th>
<th>{{ __('insurance_benefits.created_by') }}</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($insurance_benefits as $insurance_benefit)
<tr>
<td>{{ $insurance_benefit->name }}</td>
<td>{{ $insurance_plans[$insurance_benefit->plan_id] }}</td>
<td>{{ $insurance_benefit->waiting_period }}</td>
<td>{{ ugandan_shillings($insurance_benefit->fee) }}</td>
<td>{{ ugandan_shillings($insurance_benefit->annual_member_limit) }}</td>
<td>{{ ugandan_shillings($insurance_benefit->annual_family_limit) }}</td>
<td>{{ $insurance_benefit->opd_percentage ?? 'N/A' }}</td>
<td>{{ $insurance_benefit->ipd_percentage ?? 'N/A' }}</td>
<td>{{ get_full_name($insurance_benefit->created_by, 'id', 'first_name', 'last_name', 'users') }} at {{ streamline_date_time($insurance_benefit->created_at) }}</td>
<td>
@if(Auth::user()->can('insurance-benefits-view-details'))<a href="/insurance_benefits/details/{{ $insurance_benefit->id }}/" class="btn btn-rounded btn-success"><i class="fa fa-eye"></i> {{ __('insurance_benefits.view_items') }}</a>@endif
</td>
<td>
@if(Auth::user()->can('insurance-benefits-edit'))<a href="/insurance_benefits/{{ $insurance_benefit->id }}/edit/" class="btn btn-rounded btn-warning"><i class="fa fa-pencil"></i> {{ __('insurance_groups.edit') }}</a>@endif
</td>
<td>
@if(Auth::user()->can('insurance-benefits-inactive'))
{{ Form::model($insurance_benefit->id ,['method' => 'DELETE', 'route' => ['insurance_benefits.destroy', $insurance_benefit->id]]) }}
<button type="submit" class="btn btn-rounded btn-danger" onclick="return confirm('<?php echo __('clinics.are_you_sure');?>')"><i class="fa fa-trash"></i> {{ __('clinics.delete') }}</button>
{{ Form::close() }}
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</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',
bInfo: false,
bPaginate: false,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
</script>
@endpush