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

75 lines
3.1 KiB
PHP
Executable File

@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">{{ __('counties.activate_counties') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('counties.dashboard') }}</a></li>
<li><a href="/counties/index">{{ __('counties.counties') }}</a></li>
<li class="active">{{ __('counties.activate') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{{ __('counties.county_name') }}</th>
<th>{{ __('counties.district_name') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($counties as $county)
<tr>
<td>{{ $county->name }}</td>
<td>{{ $districts[$county->district_id] }}</td>
<td>
{{ Form::model($county->id ,['method' => 'POST', 'route' => ['counties.activate', $county->id]]) }}
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('counties.are_you_sure'); ?>')"><i class="fa fa-check"></i> {{ __('counties.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: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
</script>
@endpush