updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -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">{{ __('payroll.staff_members') }}</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> {{ __('payroll.home') }}</a></li>
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('payroll.finance_home') }}</a></li>
<li class="active"><i class="fa fa-eye"></i> {{ __('payroll.view_payrolls') }}</li>
</ol>
</div>
</div>
@include('payroll::payroll.menu')
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<!--Flash messages at the top -->
@include('flash::message')
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{{ __('payroll.staff_member') }}</th>
<th>{{ __('payroll.position') }}</th>
<th>{{ __('payroll.department') }}</th>
<th>{{ __('payroll.contract') }}</th>
<th>{{ __('payroll.bank') }}</th>
<th>{{ __('payroll.basic_pay') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($payrolls as $payroll)
<tr>
<td>{{ $payroll->first_name }} {{ $payroll->last_name }}</td>
<td>{{ $positions[$payroll->position] }}</td>
<td>{{ $departments[$payroll->department] }}</td>
<td>{{ $payroll->contract }}</td>
<td>{{ $banks[$payroll->payroll_bank_id] }}</td>
<td>{{ ugandan_shillings($payroll->basic_pay) }}</td>
<td>
{{ Form::model($payroll->id ,['method' => 'POST', 'route' => ['payroll.activate', $payroll->id]]) }}
<button type="submit" class="btn 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>
</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: [
'csv', 'excel', 'pdf', 'print'
]
});
</script>
@endpush