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,73 @@
@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">{{ __('risks.risk') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('risks.dashboard') }}</a></li>
<li><a href="{{ route('risks.index') }}">{{ __('risks.risk') }}</a></li>
<li class="active">{{ __('risks.create') }}</li>
</ol>
</div>
</div>
@include('insurance::risks.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
@if ($errors->any())
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="row">
<div class="col-md-12">
{{ Form::open(['route' => 'risks.store', 'data-toggle' => 'validator']) }}
<div class="form-group">
{{ Form::label('name', __('risks.risk_name')) }}
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('code', __('risks.risk_code')) }}
{{ Form::text('code', '', ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('factor', __('risks.risk_factor')) }}
{{ Form::number('factor', '', ['class' => 'form-control compulsory', 'required', 'data-error' => '', 'step' => '0.001', 'min' => 0]) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('amount', __('risks.risk_amount')) }}
{{ Form::number('amount', '', ['class' => 'form-control compulsory', 'required', 'data-error' => '', 'step' => '0.01', 'min' => 0]) }}
<div class="help-block with-errors"></div>
</div>
</div>
{{ Form::button(__('risks.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('risks.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
@endpush
@@ -0,0 +1,73 @@
@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">{{ __('risks.risk') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('risks.dashboard') }}</a></li>
<li><a href="{{ route('risks.index') }}">{{ __('risks.risk') }}</a></li>
<li class="active">{{ __('risks.edit') }}</li>
</ol>
</div>
</div>
@include('insurance::risks.menu')
<div class="row">
<div class="col-md-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
@if ($errors->any())
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
{{ Form::model($risk, ['method' => 'PUT', 'route' => ['risks.update', $risk], 'data-toggle' =>'validator']) }}
<div class="row">
<div class="col-md-12">
<div class="form-group">
{{ Form::label('name', __('risks.risk_name')) }}
{{ Form::text('name', $risk->name, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('code', __('risks.risk_code')) }}
{{ Form::text('code', $risk->code, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('factor', __('risks.risk_factor')) }}
{{ Form::number('factor', $risk->factor, ['class' => 'form-control compulsory', 'step' => '0.001', 'required', 'data-error' => '', 'min' => 0]) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('amount', __('risks.risk_amount')) }}
{{ Form::number('amount', $risk->amount, ['class' => 'form-control compulsory', 'required', 'data-error' => '', 'step' => '0.01', 'min' => 0]) }}
<div class="help-block with-errors"></div>
</div>
</div>
{{ Form::button(__('risks.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('risks.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
@endpush
@@ -0,0 +1,106 @@
@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">{{ __('risks.risk') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('risks.dashboard') }}</a></li>
<li><a href="{{ route('risks.index') }}">{{ __('risks.risk') }}</a></li>
<li class="active">{{ __('risks.inactive') }}</li>
</ol>
</div>
</div>
@include('insurance::risks.menu')
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table">
<thead>
<tr>
<th>#</th>
<th>{{ __('risks.risk_name') }}</th>
<th>{{ __('risks.risk_code') }}</th>
<th>{{ __('risks.risk_factor') }}</th>
<th>{{ __('risks.risk_amount') }}</th>
<th>{{ __('risks.creator') }}</th>
<th>{{ __('risks.date') }}</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@php $counter = 1; @endphp
@foreach($risks as $risk)
<tr>
<td>{{ $counter }}</td>
<td>{{ $risk->name }}</td>
<td>{{ $risk->code }}</td>
<td>{{ $risk->factor }}</td>
<td>{{ ugandan_shillings($risk->amount) }}</td>
<td>{{ get_full_name($risk->created_by, "id", 'first_name', 'last_name', 'users') }}</td>
<td>{{ streamline_date_time_short($risk->created_at) }}</td>
<td>
{{ Form::model($risk->id ,['method' => 'POST', 'route' => ['risks.activate', $risk->id]]) }}
<button type="submit" class="btn btn-sm btn-warning btn-rounded"
onclick="return confirm('Are you sure you want to activate this Risk?')"><i
class="fa fa-check"></i> {{ __('risks.activate') }}</button>
{{ Form::close() }}
</td>
</tr>
@php $counter++; @endphp
@endforeach
</tbody>
<tfoot>
<tr>
<th>#</th>
<th>{{ __('risks.risk_name') }}</th>
<th>{{ __('risks.risk_code') }}</th>
<th>{{ __('risks.risk_factor') }}</th>
<th>{{ __('risks.risk_amount') }}</th>
<th>{{ __('risks.creator') }}</th>
<th>{{ __('risks.date') }}</th>
<th>Actions</th>
</tr>
</tfoot>
</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({
pageLength: 10,
order: [],
});
</script>
@endpush
@@ -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" />
<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">{{ __('risks.risk') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('risks.dashboard') }}</a></li>
<li><a href="{{ route('risks.create') }}">{{ __('risks.risk') }}</a></li>
<li class="active">{{ __('risks.index') }}</li>
</ol>
</div>
</div>
@include('insurance::risks.menu')
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
@if (session('success'))
<div class="alert alert-success">
{{ session('success') }}
</div>
@endif
<p class="text-muted m-b-30">{{ __('risks.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>{{ __('risks.risk_name') }}</th>
<th>{{ __('risks.risk_code') }}</th>
<th>{{ __('risks.risk_factor') }}</th>
<th>{{ __('risks.risk_amount') }}</th>
<th>{{ __('risks.creator') }}</th>
<th>{{ __('risks.date') }}</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@php $counter = 1; @endphp
@foreach($risks as $risk)
<tr>
<td>{{ $counter }}</td>
<td>{{ $risk->name }}</td>
<td>{{ $risk->code }}</td>
<td>{{ $risk->factor }}</td>
<td>{{ ugandan_shillings($risk->amount) }}</td>
<td>{{ get_full_name($risk->created_by, "id", 'first_name', 'last_name', 'users') }}</td>
<td>{{ streamline_date_time_short($risk->created_at) }}</td>
<td>
@if (Auth::user()->can('insurance-risk-edit'))
<a class="btn btn-sm btn-warning btn-rounded" href="{{ route('risks.edit',$risk->id) }}"><i class="fa fa-pencil"></i> {{ __('risks.edit') }}</a>
@endif
<a class="btn btn-sm btn-rounded btn-info" href="{{ route('risks.show',$risk->id) }}"><i class="fa fa-info-circle"></i> {{ __('risks.view') }}</a>
@if (Auth::user()->can('insurance-risk-delete'))
{{ Form::model($risk->id ,['method' => 'DELETE', 'route' => ['risks.destroy', $risk->id]]) }}
<button type="submit" class="btn btn-sm btn-rounded btn-danger" onclick="return confirm('<?php echo __('risks.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('risks.delete') }}</button>
{{ Form::close() }}
@endif
</td>
</tr>
@php $counter++; @endphp
@endforeach
</tbody>
<tfoot>
<tr>
<th>#</th>
<th>{{ __('risks.risk_name') }}</th>
<th>{{ __('risks.risk_code') }}</th>
<th>{{ __('risks.risk_factor') }}</th>
<th>{{ __('risks.risk_amount') }}</th>
<th>{{ __('risks.creator') }}</th>
<th>{{ __('risks.date') }}</th>
<th>Actions</th>
</tr>
</tfoot>
</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: 10,
order: [],
});
</script>
@endpush
@@ -0,0 +1,13 @@
<div class="panel panel-default">
<div class="panel-body">
@if (Auth::user()->can('insurance-risk-list'))
<a href="{{ route('risks.index') }}" class="nav-item btn btn-default"><i class="fa fa-info-circle" aria-hidden="true"></i><span style="margin-left: 5px">View Risks</span></a>
@endif
@if (Auth::user()->can('insurance-risk-create'))
<a href="{{ route('risks.create') }}" class="nav-item btn btn-default"><i class="fa fa-plus" aria-hidden="true"></i><span style="margin-left: 5px">Add a Risk</span></a>
@endif
@if (Auth::user()->can('insurance-risk-delete'))
<a href="{{ route('risks.inactive') }}" class="nav-item btn btn-default"> <i class="fa fa-undo" aria-hidden="true"></i><span style="margin-left: 5px">Inactive Risks</span></a>
@endif
</div>
</div>
@@ -0,0 +1,58 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.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">{{ __('risks.risk') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('risks.dashboard') }}</a></li>
<li><a href="{{ route('risks.index') }}">{{ __('risks.risk') }}</a></li>
<li class="active">{{ __('risks.edit') }}</li>
</ol>
</div>
</div>
@include('insurance::risks.menu')
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="form-group">
<strong>{{ __('risks.risk_name') }}:</strong>
{{ $risk->name }}
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="form-group">
<strong>{{ __('risks.risk_code') }}:</strong>
{{ $risk->code }}
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="form-group">
<strong>{{ __('risks.risk_factor') }}:</strong>
{{ $risk->factor }}
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="form-group">
<strong>{{ __('risks.risk_amount') }}:</strong>
{{ $risk->amount }}
</div>
</div>
</div>
</div>
</div>
</div>
@endsection