Files
streamline-emr/docker/statistics/Modules/ClinicalData/Resources/views/eye_glasses/index.blade.php
T
2025-03-31 03:46:05 +03:00

108 lines
4.7 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" />
@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">{{ __('clinical_data.opticals') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">Dashboard</a></li>
<li class="active">View</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('clinical_data::eye_glasses.menu')
</div>
</div>
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
<p class="text-muted m-b-30">Export data to Copy, CSV, Excel, PDF & Print</p>
<div class="table-responsive">
<table class="table table-striped color-bordered-table success-bordered-table">
<thead>
<tr>
<th>Name</th>
<th>Buying Price</th>
<th>Insurance Status</th>
<th>Non Insured Price</th>
<th>Insured Price</th>
<th>Account Name</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@if(count($eye_glasses) > 0)
@foreach($eye_glasses as $record)
<tr>
<td>{{ $record['name'] }}</td>
<td>{{ ugandan_shillings($record['buying_price']) }}</td>
<td>
@if ($record['insurance'])
Yes
@else
No
@endif
</td>
<td>{{ ugandan_shillings($record['non_insured_price']) }}</td>
<td>{{ ugandan_shillings($record['insured_price']) }}</td>
<td>{{ $chart_of_accounts[$record['account_id']] }}</td>
<td>
<a href="/opticals/{{ $record['id'] }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> Edit</a>
</td>
<td>
{{ Form::model($record['id'] ,['method' => 'DELETE', 'route' => ['opticals.destroy', $record['id']]]) }}
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete?')"><i class="fa fa-trash"></i> Delete</button>
{{ Form::close() }}
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="7" class="text-center">No records available</td>
</tr>
@endif
</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/zip.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',
pageLength: 100,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
</script>
@endpush