mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
115 lines
5.2 KiB
PHP
Executable File
115 lines
5.2 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">{{ __('resources.resources') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('resources.dashboard') }}</a></li>
|
|
<li class="active">{{ __('resources.resources') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3">
|
|
<div class="white-box">
|
|
{{ Form::open(['route' => ['resources.select'], 'method' => 'ANY', 'role' => 'select']) }}
|
|
<div class="form-group">
|
|
{{ Form::label('category_label', __('resources.categories')) }}
|
|
|
|
<select name="category_select" class="form-control" required>
|
|
<option value="">--{{ __('resources.select_resource_category') }}--</option>
|
|
@foreach($category_select as $item)
|
|
<option value="{{ $item->id }}">{{ $item->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
|
|
</div>
|
|
|
|
{{ Form::button(__('resources.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10', 'id'=>'select_resource']) }}
|
|
{{ Form::close() }}
|
|
|
|
<div><a href="/resources/create">{{ __('resources.add_new_resource') }}</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
@include('flash::message')
|
|
<div class="white-box">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('resources.title') }}</th>
|
|
<th>{{ __('resources.body') }}</th>
|
|
<th>{{ __('resources.categories') }}</th>
|
|
<th>{{ __('resources.edit') }}</th>
|
|
<th>{{ __('resources.delete') }}</th>
|
|
<th>{{ __('resources.download') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($resources as $resource)
|
|
<?php
|
|
if (empty($resource->title)):
|
|
continue;
|
|
endif;
|
|
?>
|
|
<tr>
|
|
<td>{{ $resource->title }}</td>
|
|
<td>{{ $resource->body }}</td>
|
|
<td>{{ $categories[$resource->category_id] ?? "" }}</td>
|
|
<td>
|
|
<a href="/resources/{{ $resource->id }}/edit/" class="btn btn-default"><i class="fa fa-pencil"></i> {{ __('resources.edit') }}</a>
|
|
</td>
|
|
<td>
|
|
{{ Form::model($resource->id ,['method' => 'DELETE', 'route' => ['resources.destroy', $resource->id]]) }}
|
|
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('resources.are_you_sure');?>')"><i class="fa fa-trash"></i> {{ __('resources.delete') }}</button>
|
|
{{ Form::close() }}
|
|
</td>
|
|
<td>
|
|
<a href="{{ asset($resource->attach_path) }}" target="_blank" >
|
|
<button type="button" class="btn btn-primary"><i class="glyphicon glyphicon-download"> {{ __('resources.download') }}</i></button></a>
|
|
</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',
|
|
pageLength: 50,
|
|
buttons: [
|
|
'copy', 'csv', 'excel', 'pdf', 'print'
|
|
]
|
|
});
|
|
</script>
|
|
@endpush
|