changed directory

This commit is contained in:
whotopia
2022-01-08 15:08:39 +01:00
parent b724da5482
commit 32720e1263
14388 changed files with 686226 additions and 0 deletions

32
glass_report/resources/js/app.js vendored Normal file
View File

@@ -0,0 +1,32 @@
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* The following block of code may be used to automatically register your
* Vue components. It will recursively scan this directory for the Vue
* components and automatically register them with their "basename".
*
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/
// const files = require.context('./', true, /\.vue$/i)
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
const app = new Vue({
el: '#app',
});

41
glass_report/resources/js/bootstrap.js vendored Normal file
View File

@@ -0,0 +1,41 @@
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.Popper = require('popper.js').default;
window.$ = window.jQuery = require('jquery');
require('bootstrap');
} catch (e) {}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo';
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// forceTLS: true
// });

View File

@@ -0,0 +1,23 @@
<template>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Example Component</div>
<div class="card-body">
I'm an example component.
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
mounted() {
console.log('Component mounted.')
}
}
</script>

View File

@@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => 'These credentials do not match our records.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];

View File

@@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; Previous',
'next' => 'Next &raquo;',
];

View File

@@ -0,0 +1,22 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'reset' => 'Your password has been reset!',
'sent' => 'We have emailed your password reset link!',
'throttled' => 'Please wait before retrying.',
'token' => 'This password reset token is invalid.',
'user' => "We can't find a user with that email address.",
];

View File

@@ -0,0 +1,151 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => 'The :attribute must be accepted.',
'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'The :attribute may only contain letters.',
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
'alpha_num' => 'The :attribute may only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'numeric' => 'The :attribute must be between :min and :max.',
'file' => 'The :attribute must be between :min and :max kilobytes.',
'string' => 'The :attribute must be between :min and :max characters.',
'array' => 'The :attribute must have between :min and :max items.',
],
'boolean' => 'The :attribute field must be true or false.',
'confirmed' => 'The :attribute confirmation does not match.',
'date' => 'The :attribute is not a valid date.',
'date_equals' => 'The :attribute must be a date equal to :date.',
'date_format' => 'The :attribute does not match the format :format.',
'different' => 'The :attribute and :other must be different.',
'digits' => 'The :attribute must be :digits digits.',
'digits_between' => 'The :attribute must be between :min and :max digits.',
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.',
'email' => 'The :attribute must be a valid email address.',
'ends_with' => 'The :attribute must end with one of the following: :values.',
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.',
'gt' => [
'numeric' => 'The :attribute must be greater than :value.',
'file' => 'The :attribute must be greater than :value kilobytes.',
'string' => 'The :attribute must be greater than :value characters.',
'array' => 'The :attribute must have more than :value items.',
],
'gte' => [
'numeric' => 'The :attribute must be greater than or equal :value.',
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
'string' => 'The :attribute must be greater than or equal :value characters.',
'array' => 'The :attribute must have :value items or more.',
],
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.',
'ip' => 'The :attribute must be a valid IP address.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lt' => [
'numeric' => 'The :attribute must be less than :value.',
'file' => 'The :attribute must be less than :value kilobytes.',
'string' => 'The :attribute must be less than :value characters.',
'array' => 'The :attribute must have less than :value items.',
],
'lte' => [
'numeric' => 'The :attribute must be less than or equal :value.',
'file' => 'The :attribute must be less than or equal :value kilobytes.',
'string' => 'The :attribute must be less than or equal :value characters.',
'array' => 'The :attribute must not have more than :value items.',
],
'max' => [
'numeric' => 'The :attribute may not be greater than :max.',
'file' => 'The :attribute may not be greater than :max kilobytes.',
'string' => 'The :attribute may not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
'array' => 'The :attribute must have at least :min items.',
],
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'The :attribute must be a number.',
'password' => 'The password is incorrect.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute format is invalid.',
'required' => 'The :attribute field is required.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values are present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'same' => 'The :attribute and :other must match.',
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.',
],
'starts_with' => 'The :attribute must start with one of the following: :values.',
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',
'uuid' => 'The :attribute must be a valid UUID.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [],
];

View File

@@ -0,0 +1,19 @@
// Body
$body-bg: #f8fafc;
// Typography
$font-family-sans-serif: 'Nunito', sans-serif;
$font-size-base: 0.9rem;
$line-height-base: 1.6;
// Colors
$blue: #3490dc;
$indigo: #6574cd;
$purple: #9561e2;
$pink: #f66d9b;
$red: #e3342f;
$orange: #f6993f;
$yellow: #ffed4a;
$green: #38c172;
$teal: #4dc0b5;
$cyan: #6cb2eb;

8
glass_report/resources/sass/app.scss vendored Normal file
View File

@@ -0,0 +1,8 @@
// Fonts
@import url('https://fonts.googleapis.com/css?family=Nunito');
// Variables
@import 'variables';
// Bootstrap
@import '~bootstrap/scss/bootstrap';

View File

@@ -0,0 +1,65 @@
@extends('layouts')
@section('content')
{{-- <div class="login-box"> --}}
<!-- /.login-logo -->
<br>
<div class="col-md-6">
<div class="login-box-body">
<h3 class="login-box-msg">Change password</h3>
<br>
@if ($message = Session::get('error'))
<p class="text-danger">
<strong>{{ $message }}</strong>
</p>
@endif
<form method="POST" action="{{ route('upt_pass') }}">
@csrf
{{-- <input type="hidden" name="token" value="{{ $token }}"> --}}
<div class="form-group has-feedback">
<input id="current_password" type="password" name="current_password" class="form-control{{ $errors->has('current_password') ? ' is-invalid' : '' }}" placeholder="Current password" value="{{ old('current_password') }}" required>
<span class="fa fa-lock form-control-feedback"></span>
@if ($errors->has('current_password'))
<span class="text-danger">
<strong>{{ $errors->first('current_password') }}</strong>
</span>
@endif
</div>
<div class="form-group has-feedback">
<input id="password" type="password" name="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" placeholder="Password" value="{{ old('password') }}" required>
<span class="fa fa-key form-control-feedback"></span>
@if ($errors->has('password'))
<span class="text-danger">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
<div class="form-group has-feedback">
<input id="password_confirmation" type="password" name="password_confirmation" class="form-control{{ $errors->has('password_confirmation') ? ' is-invalid' : '' }}" placeholder="Confirm Password" required>
<span class="fa fa-key form-control-feedback"></span>
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Change Password') }}
</button>
<a href="{{ url()->previous() }}" class="btn btn-danger"><span class="fa fa-times"></span> Cancel </a>
</div>
</div>
</form>
</div>
{{-- </div> --}}
</div>
@endsection

View File

@@ -0,0 +1,108 @@
@extends('layouts')
@section('content')
<br>
<div class="container-fluid">
<div class="row">
<div class="col-lg-6">
<div class="box box-danger">
<div class="box-header">
<center><h3 class="box-title">Staff registration form</h3></center>
</div>
<div class="box-body">
<form method="post" action="{{ route('register-update', [$user->id]) }}">
@csrf
<div class="form-group ">
<label class="control-label" for="full_name" >Full name</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-user"></i>
</div>
<input type="text" name="full_name" value="{{ $user->name }}" id="full_name" class="form-control">
</div>
@if ($errors->has('full_name'))
<span class="text-danger">
<strong>{{ $errors->first('full_name') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="email" >E-mail</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-envelope"></i>
</div>
<input type="email" name="email" id="email" class="form-control" value="{{ $user->email }}" readonly="readonly">
</div>
@if ($errors->has('email'))
<span class="text-danger">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="username" >Username</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-lock"></i>
</div>
<input type="text" name="username" id="username" class="form-control {{ $errors->has('username') ? ' is-invalid' : '' }}" value="{{ $user->username }}" readonly="readonly">
</div>
@if ($errors->has('username'))
<span class="text-danger">
<strong>{{ $errors->first('username') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="Gender" >Gender</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-user"></i>
</div>
<select name="Gender" id="Gender" class="form-control">
<option value="">Select Gender</option>
<option {{ $user->sex == 'm' ? 'selected' : ''}} value="m">Male</option>
<option {{ $user->sex == 'f' ? 'selected' : ''}} value="f">Female</option>
</select>
</div>
@if ($errors->has('Gender'))
<span class="text-danger">
<strong>{{ $errors->first('Gender') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="role" >User role</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-book"></i>
</div>
<select name="role" id="role" class="form-control">
<option value="">Select User Role</option>
<option {{ $user->role == 'Staff' ? 'selected' : ''}}>Staff</option>
<option {{ $user->role == 'Admin' ? 'selected' : ''}}>Admin</option>
</select>
</div>
@if ($errors->has('role'))
<span class="text-danger">
<strong>{{ $errors->first('role') }}</strong>
</span>
@endif
</div>
{{ method_field('PUT') }}
<button class="btn btn-flat btn-success btn-sm"> <span class="fa fa-edit"></span> Update </button>
<a href="{{ url()->previous() }}" class="btn btn-danger btn-sm btn-flat"><span class="fa fa-times"></span> Cancel </a>
</form>
</div>
</div>
</div>
<div class="col-lg-6">
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,76 @@
@extends('layouts')
@section('title')
User infomation
@stop
@section('content')
<!-- Small boxes (Stat box) -->
<section class="content">
<div class="box box-danger">
<div class="box-header">
<h3 class="box-title">User registration</h3>
<span class="pull-right"><a href="{{ route('register.create') }}" class="btn btn-primary btn-sm">New Staff</a> </span>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="example2" class="table table-bordered table-striped table-responsive">
<thead>
<tr>
<th>#</th>
<th>Full Name</th>
<th>E-mail</th>
<th>Username</th>
<th>Gender</th>
<th style="text-align: center">Email Verification</th>
<th>Role</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
@if (count($user) > 0)
<?php $no = 1 ?>
@foreach($user as $bin )
<tr>
<td>{{ $no++ }}</td>
<td>{{$bin->name}}</td>
<td>{{$bin->email}}</td>
<td>{{$bin->username}}</td>
<td>
@if ($bin->sex == 'm')
Male
@else
Female
@endif
</td>
<td style="text-align: center">
@if(($bin->email_verified_at) == null)
<i class="fa fa-times fa-2x text-danger" aria-hidden="true"></i>
@else
<i class="fa fa-check fa-2x text-success" aria-hidden="true"></i>
@endif
</td>
<td>{{$bin->role}}</td>
<td>
<a href="{{ route('register.edit', [$bin->uid]) }}" class="btn btn-success btn-sm btn-flat"><span class="fa fa-edit"></span> Edit</a>
</td>
<td>
<form method="post" action="{{ route('register-delete', [$bin->id]) }}" >
<input type="hidden" name="_method" value="DELETE">
{{ csrf_field() }}
<button class="btn btn-danger btn-sm btn-flat" onclick = "return confirm('Are you sure you want to delete {{ $bin->name }} ?');"><span class="fa fa-trash"></span> Trash</button>
{{--{!! Form::close() !!}--}}
</form>
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
<!-- /.box-body -->
</div>
</section>
@stop

View File

@@ -0,0 +1,79 @@
@extends('layouts.my_layout')
@section('content')
<div class="login-box">
@guest
<!-- /.login-logo -->
<div class="login-box-body">
<div class="login-logo">
<img src="{{asset('public/mystyle')}}/country.svg" width="150px">
</div>
<div>
<p class="login-box-msg">For security reasons <br> Sign in to view glass reports</p>
</div>
<form method="POST" action="{{ route('login') }}">
@csrf
<div class="form-group has-feedback">
<input id="username" type="text" name="username" class="form-control" placeholder="Username" value="{{ old('username') }}">
<span class="fa fa-lock form-control-feedback"></span>
@if ($errors->has('username'))
<span class="text-danger">
<strong>{{ $errors->first('username') }}</strong>
</span>
@endif
</div>
<div class="form-group has-feedback">
<input type="password" id="password" class="form-control" placeholder="Password" name="password">
<span class="fa fa-key form-control-feedback"></span>
@if ($errors->has('password'))
<span class="text-danger">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> Remember Me
</label>
</div>
</div>
<!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button>
</div>
<!-- /.col -->
</div>
</form>
{{-- <a href=""{{ route('password.request') }}"">I forgot my password</a> --}}
@if (Route::has('password.request'))
<a class="btn btn-link" href="{{ route('password.request') }}">
{{ __('Forgot Your Password?') }}
</a>
@endif
{{-- <a href="{{ route('password.request') }}">I forgot my password</a> --}}
<hr>
<div class="login-logo">
<img src="{{asset('public/mystyle')}}/FIND_logo.png" width="120px">
<div class="login-logo">
{{-- <center> <a href="{{ url('/') }}"><span class="fa fa-home"></span> Back to home</a></center> --}}
</div>
<!-- /.login-box-body -->
</div>
@endguest
@auth
<h3>I am login</h3>
@endauth
@stop

View File

@@ -0,0 +1,49 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Confirm Password') }}</div>
<div class="card-body">
{{ __('Please confirm your password before continuing.') }}
<form method="POST" action="{{ route('password.confirm') }}">
@csrf
<div class="form-group row">
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group row mb-0">
<div class="col-md-8 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Confirm Password') }}
</button>
@if (Route::has('password.request'))
<a class="btn btn-link" href="{{ route('password.request') }}">
{{ __('Forgot Your Password?') }}
</a>
@endif
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,63 @@
@extends('layouts.my_layout')
@section('content')
<div class="login-box">
<!-- /.login-logo -->
<div class="login-box-body">
<div class="login-logo">
<img src="{{asset('public/mystyle')}}/country.svg" width="150px">
</div>
<div class="login-box-msg">
<h3>Password reset</h3>
<p>To reset yor password, Fill your email below</p>
</div>
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
<form method="POST" action="{{ route('password.email') }}">
@csrf
{{-- <div class="form-group row">
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" required>
@if ($errors->has('email'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
</div> --}}
<div class="form-group has-feedback">
<input id="username" type="email" name="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" placeholder="E-mail" value="{{ old('email') }}" required>
<span class="fa fa-envelope form-control-feedback"></span>
@if ($errors->has('email'))
<span class="text-danger">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Send Password Reset Link') }}
</button>
</div>
</div>
</form>
<hr>
<p>If you remember your password <a href="{{ route('login') }}"> Login</a></p>
<div class="login-logo">
<img src="{{asset('public/mystyle')}}/FIND_logo.png" width="120px">
<div class="login-logo">
</div>
</div>
@endsection

View File

@@ -0,0 +1,94 @@
@extends('layouts.my_layout')
@section('content')
<div class="login-box">
<!-- /.login-logo -->
<div class="login-box-body">
<div class="login-logo">
<img src="{{asset('public/mystyle')}}/country.svg" width="150px">
</div>
<p class="login-box-msg">To reset yor password, Fill below</p>
<form method="POST" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
{{-- <div class="form-group row">
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" required autofocus>
@if ($errors->has('email'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
</div> --}}
<div class="form-group has-feedback">
<input id="username" type="email" name="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" placeholder="E-mail" value="{{ old('email') }}" required>
<span class="fa fa-envelope form-control-feedback"></span>
@if ($errors->has('email'))
<span class="text-danger">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
{{-- <div class="form-group row">
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required>
@if ($errors->has('password'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
</div> --}}
<div class="form-group has-feedback">
<input id="password" type="password" name="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" placeholder="Password" value="{{ old('password') }}" required>
<span class="fa fa-envelope form-control-feedback"></span>
@if ($errors->has('password'))
<span class="text-danger">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
{{-- <div class="form-group row">
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>
<div class="col-md-6">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
</div>
</div> --}}
<div class="form-group has-feedback">
<input id="password-confirm" type="password" name="password_confirmation" class="form-control{{ $errors->has('password_confirmation') ? ' is-invalid' : '' }}" placeholder="Confirm Password" required>
<span class="fa fa-key form-control-feedback"></span>
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Reset Password') }}
</button>
</div>
</div>
<div class="login-logo">
<img src="{{asset('public/mystyle')}}/FIND_logo.png" width="120px">
<div class="login-logo">
</form>
</div>
</div>
@endsection

View File

@@ -0,0 +1,120 @@
@extends('layouts')
@section('content')
<br>
<div class="container-fluid">
<div class="row">
<div class="col-lg-6">
<div class="box box-danger">
<div class="box-header">
<center><h3 class="box-title">Staff registration form</h3></center>
</div>
<div class="box-body">
<form method="post" action="{{ route('register.save') }}">
@csrf
<div class="form-group ">
<label class="control-label" for="full_name" >Full name</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-user"></i>
</div>
<input type="text" name="full_name" id="full_name" class="form-control" value="{{ old('full_name') }}">
</div>
@if ($errors->has('full_name'))
<span class="text-danger">
<strong>{{ $errors->first('full_name') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="email" >E-mail</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-envelope"></i>
</div>
<input type="email" name="email" id="email" class="form-control" value="{{ old('email') }}">
</div>
@if ($errors->has('email'))
<span class="text-danger">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="username" >Username</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-lock"></i>
</div>
<input type="text" name="username" id="username" class="form-control {{ $errors->has('username') ? ' is-invalid' : '' }}" value="{{ old('username') }}">
</div>
@if ($errors->has('username'))
<span class="text-danger">
<strong>{{ $errors->first('username') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="Gender" >Gender</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-user"></i>
</div>
<select name="Gender" id="Gender" class="form-control">
<option value="">Select Gender</option>
<option value="m">Male</option>
<option value="f">Female</option>
</select>
</div>
@if ($errors->has('Gender'))
<span class="text-danger">
<strong>{{ $errors->first('Gender') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="role" >User role</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-book"></i>
</div>
<select name="role" id="role" class="form-control">
<option value="">Select User Role</option>
<option>Staff</option>
<option>Admin</option>
</select>
</div>
@if ($errors->has('role'))
<span class="text-danger">
<strong>{{ $errors->first('role') }}</strong>
</span>
@endif
</div>
<div class="form-group ">
<label class="control-label" for="password" >Password</label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-key"></i>
</div>
<input type="text" value="12345678" name="password" id="password" class="form-control">
</div>
@if ($errors->has('password'))
<span class="text-danger">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
<button class="btn btn-flat btn-success btn-sm"> <span class="fa fa-floppy-o"></span> Register </button>
<a href="{{ url()->previous() }}" class="btn btn-danger btn-sm btn-flat"><span class="fa fa-times"></span> Cancel </a>
</form>
</div>
</div>
</div>
<div class="col-lg-6">
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,44 @@
@extends('layouts.my_layout')
@section('content')
<div class="login-box">
<!-- /.login-logo -->
<div class="login-box-body">
<div class="login-logo">
<img src="{{asset('public/mystyle')}}/country.svg" width="150px">
</div>
<h3 class="login-box-msg">E-mail verification</h3>
<div class="card-body">
@if (session('resent'))
<div class="alert alert-success" role="alert">
{{ __('A fresh verification link has been sent to your email address.') }}
</div>
@endif
<center><h5>Welcome: {{ Auth::user()->full_name }} <br><br> E-mail: {{ Auth::user()->email }}</h5></center>
<hr>
{{-- <p>Before proceeding, First verify your email please, <br> by <a href="{{ route('verification.resend') }}">{{ __('clicking here') }}
</a>.</p> --}}
{{-- {{ __('If you did not receive the email') }}, --}}
<span>
<form class="d-inline" method="POST" action="{{ route('verification.resend') }}">
@csrf
Before proceeding, First verify your email please, by<button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ __('clicking here') }}</button>
</form>
</span>
<p>If your e-mail is incorrect, contact your administrator</p>
<div class="login-logo">
<img src="{{asset('public/mystyle')}}/FIND_logo.png" width="120px">
<div class="login-logo">
{{-- {{ Auth::user()->full_name }} --}}
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,34 @@
@if ($message = Session::get('success'))
<div class="alert alert-success alert-block animated heartBeat">
<strong>{{ $message }}</strong>
</div>
@endif
@if ($message = Session::get('error'))
<div class="alert alert-danger alert-block animated rubberBand">
<strong>{{ $message }}</strong>
</div>
@endif
@if ($message = Session::get('warning'))
<div class="alert alert-warning alert-block animated shake">
<strong>{{ $message }}</strong>
</div>
@endif
@if ($message = Session::get('info'))
<div class="alert alert-info alert-block animated bounceInLeft">
<strong>{{ $message }}</strong>
</div>
@endif
@if ($errors->any())
<div class="alert alert-danger animated rubberBand">
Please check the form below for errors
</div>
@endif

View File

@@ -0,0 +1,23 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Dashboard</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
You are logged in!
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,5 @@
<footer class="main-footer">
{{-- <strong>Copyright &copy; {{date('Y')}} <a href="#">AMR</a>.</strong> All rights
reserved. --}}
<p><span class="text-bold">AMR</span> One Health GLASS Reporting Module <span class="pull-right">Version 1.0</span></p>
</footer>

View File

@@ -0,0 +1,80 @@
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu" data-widget="tree">
<li class="header">MAIN NAVIGATION</li>
<li>
<a href="/">
<i class="fa fa-home"></i> <span>Home</span>
</a>
</li>
{{-- <li class="{{ Request::is('antibiotic-timing') ? 'active':null }}">
<a href="{{ route('timming') }}">
<i class="fa fa-clock-o"></i> <span>Antibiotic Timing</span>
</a>
</li>
<li class="{{ Request::is('antibiotic-class') ? 'active':null }}">
<a href="{{ route('class') }}">
<i class="fa fa-list-ul"></i> <span>Antibiotic Timing (I & II)</span>
</a>
</li>
<li class="{{ Request::is('no-follow-up') ? 'active':null }}">
<a href="{{ route('nofollowup') }}">
<i class="fa fa-times-rectangle-o"></i> <span>Follow-up (No ward encounter)</span>
</a>
</li>
<li class="{{ Request::is('inpatient-follow-up') ? 'active':null }}">
<a href="{{ route('adminLength') }}">
<i class="fa fa-calendar"></i> <span>Follow-up (Inpatient)</span>
</a>
</li>
<li class="{{ Request::is('outpatient-follow-up') ? 'active':null }}">
<a href="{{ route('outpatient-followup') }}">
<i class="fa fa-toggle-down"></i> <span>Follow-up (Outpatient)</span>
</a>
</li>
<li class="{{ Request::is('complete-follow-up') ? 'active':null }}">
<a href="{{ route('Complete-followup') }}">
<i class="fa fa-check"></i> <span>Follow-up (Complete)</span>
</a>
</li>
<li class="{{ Request::is('home') ? 'active':null }}">
<a href="{{ route('home') }}">
<i class="fa fa-user-md"></i> <span>Inpatient SSI</span>
</a>
</li>
@if (Auth::user()->role == 1)
<li class="{{ Request::is('register*') ? 'active':null }}">
<a href="{{ route('register.index') }}">
<i class="fa fa-users"></i> <span>Manage Users</span>
</a>
</li>
@endif --}}
{{-- <li class="{{ Request::is('change-password') ? 'active':null }}">
<a href="{{ route('change_pass') }}">
<i class="fa fa-cogs"></i> <span>Change password</span>
</a>
</li>
<li >
<a href="{{ route('logout') }}" onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
<i class="fa fa-power-off text-danger"></i> <span>{{ __('Logout') }}</span>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</a>
</li> --}}
</ul>
</section>
<!-- /.sidebar -->
</aside>

View File

@@ -0,0 +1,66 @@
<header class="main-header">
<nav class="navbar navbar-static-top">
<div class="container-fluid">
<!-- <div class="navbar-header">
<img src="{{asset('public/mystyle')}}/AoS_Logo.png" width="150px">
</div> -->
<div class="navbar-header">
<a href="{{route('sample_file') }}" class="navbar-brand" style="margin-top: -10px;"><b><img src="{{asset('public/mystyle')}}/country.svg" width="50px"> &nbsp; AMR</b></a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
<i class="fa fa-bars"></i>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
<ul class="nav navbar-nav">
<li class="{{ Request::is('/') || Request::is('home') ? 'active': null }}"><a href="{{ route('sample_file') }}">Sample File</a></li>
<li class="{{ Request::is('irsx') ? 'active': null }}"><a href="{{ route('irsx') }}">RIS File</a></li>
@if (Auth::user()->role == 'Admin')
<li class="{{ Request::is('user/*') ? 'active': null }}"><a href="{{ route('register-home') }}">User Management</a></li>
@endif
</ul>
</div>
<!-- /.navbar-collapse -->
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- User Account Menu -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{{-- <img src="/uploads/avatars/{{ Auth::user()->avatar }}" class="user-image" alt="User Image" style="width: 45px; height:45px; margin-top:-13px"> --}}
<span class="fa fa-user"></span>
<span class="hidden-xs">{{ Auth::user()->username }}</span>
</a>
<ul class="dropdown-menu">
<!-- The user image in the menu -->
<li class="user-header">
<br>
<p> {{ Auth::user()->name }} </p>
<p><small>User role: {{ Auth::user()->role }}</small></p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="{{ route('change_pass') }}" class="btn btn-warning btn-flat">Change password</a>
</div>
<div class="pull-right">
<a href="#" class="btn btn-danger btn-flat" data-toggle="modal" data-target="#modal-default">Sign out</a>
</div>
</li>
</ul>
</li>
<li class="user user-menu" style="padding-top: 10px;">
<img src="{{asset('public/mystyle')}}/FIND_logo.png" width="80px">
</li>
</ul>
</div>
<!-- /.navbar-custom-menu -->
</div>
<!-- /.container-fluid -->
</nav>
</header>

View File

@@ -0,0 +1,176 @@
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
$(window).load(function() {
$(".loader").fadeOut("slow");
})
</script>
<style real="stylesheet">
.loader {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url("{{ asset('public/mystyle') }}/loader.gif") 50% 50% no-repeat rgb(249,249,249);
}
</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
@yield('title')
</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="{{asset('public/mystyle')}}/my_css.css">
<link rel="stylesheet" href="{{asset('public/mystyle')}}/bower_components/bootstrap/dist/css/mycss.css">
<link rel="stylesheet" href="{{asset('public/mystyle')}}/bower_components/bootstrap/dist/css/animate.css">
<!-- Ionicons -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/dist/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.5.6/css/buttons.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
</head>
<body class="hold-transition skin-blue layout-top-nav">
<div class="loader"></div>
<div class="wrapper">
@include('inc.top_nav')
<!-- Left side column. contains the logo and sidebar -->
{{-- @include('inc.side_navbar') --}}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
{{-- <a onclick="exportAll('txt');" href="javascript://">TXT</a> --}}
@include('flash-message')
@yield('content')
</div>
<!-- /.content-wrapper -->
@include('inc.footer')
</div>
<!-- ./wrapper -->
<div class="modal fade" id="modal-default">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Sign out</h4>
</div>
<div class="modal-body">
<p>Are you sure you want to Sign out ?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
<a class="btn btn-danger" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
<span class="fa fa-power-off"></span> Sign out
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</a>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
{{--<!-- jQuery 3 -->--}}
<script src="{{asset('public/mystyle')}}/bower_components/jquery/dist/jquery.min.js"></script>
{{--<!-- jQuery UI 1.11.4 -->--}}
{{--<script src="{{asset('public/mystyle')}}/bower_components/jquery-ui/jquery-ui.min.js"></script>--}}
<!-- Bootstrap 3.3.7 -->
<script src="{{asset('public/mystyle')}}/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Download button -->
{{-- <script src="https://code.jquery.com/jquery-3.5.1.js"></script> --}}
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.6/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.flash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.print.min.js"></script>
<!-- AdminLTE App -->
<script src="{{asset('public/mystyle')}}/dist/js/adminlte.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="{{asset('public/mystyle')}}/dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="{{asset('public/mystyle')}}/dist/js/demo.js"></script>
<script src="{{asset('public/mystyle')}}/text/dist/tableExport.js"></script>
<script src="{{asset('public/mystyle')}}/text/main.js"></script>
<script>
$(function () {
$('#example1').DataTable({
'destroy' : true,
dom: 'Bfrtip',
buttons: [
'print', 'excel', 'csv'
],
"pageLength": 50,
"order": [[ 2, "asc" ]]
})
});
$(function () {
$('#example2').DataTable({
'destroy' : true,
"pageLength": 50,
})
});
$("document").ready(function(){
setTimeout(function(){
$("div.alert").remove();
}, 4000 ); // 5 secs
});
</script>
</body>
</html>

View File

@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
<body>
<div id="app">
<nav class="navbar navbar-expand-md navbar-light navbar-laravel">
<div class="container">
<a class="navbar-brand" href="{{ url('/') }}">
{{ config('app.name', 'Laravel') }}
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<!-- Left Side Of Navbar -->
<ul class="navbar-nav mr-auto">
</ul>
<!-- Right Side Of Navbar -->
<ul class="navbar-nav ml-auto">
<!-- Authentication Links -->
@guest
<li class="nav-item">
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
</li>
@if (Route::has('register'))
<li class="nav-item">
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
</li>
@endif
@else
<li class="nav-item dropdown">
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
{{ Auth::user()->name }} <span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
{{ __('Logout') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</div>
</li>
@endguest
</ul>
</div>
</div>
</nav>
<main class="py-4">
@yield('content')
</main>
</div>
</body>
</html>

View File

@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Fiel report</title>
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/dist/css/AdminLTE.min.css">
<!-- iCheck -->
<link rel="stylesheet" href="{{asset('public/mystyle')}}/plugins/iCheck/square/blue.css">
<![endif]-->
</head>
<body class="hold-transition login-page">
@yield('content')
<!-- jQuery 3 -->
<script src="{{asset('public/mystyle')}}/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="{{asset('public/mystyle')}}/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="{{asset('public/mystyle')}}/plugins/iCheck/icheck.min.js"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' /* optional */
});
});
</script>
</body>
</html>

View File

@@ -0,0 +1,142 @@
@extends('layouts')
@section('title')
RIS File
@endsection
@section('content')
<section class="content-header">
</section>
<!-- Small boxes (Stat box) -->
<section class="content">
<div class="box box-warning">
<div class="box-header">
<h3 class="box-title">AMR: RIS File</h3>
</div>
<div class="box-body">
<div class="row">
<form method="GET" action="{{ route('irsx') }}">
<div class="col-sm-4 col-md-2">
<div class="form-group has-feedback">
<label>Gender:</label>
<select class="form-control" name="gender">
<option {{ ($sex == "All")? 'selected' : '' }} value="all">All</option>
<option {{ ($sex == 'M')? 'selected' : '' }} value="M">Male</option>
<option {{ ($sex == 'F')? 'selected' : '' }} value="F">Female</option>
<option {{ ($sex == 'UNK')? 'selected' : '' }} value="UNK">Unknown</option>
</select>
@if ($errors->has('gender'))
<span class="text-danger">
<strong>{{ $errors->first('gender') }}</strong>
</span>
@endif
</div>
</div>
<div class="col-sm-4 col-md-2">
<div class="form-group has-feedback">
<label>Year:</label>
<select class="form-control" name="date">
<option value="all">All</option>
@foreach ($data as $item)
<option {{ ($item->year == $date)? 'selected' : '' }}>{{ $item->year }}</option>
@endforeach
</select>
@if ($errors->has('username'))
<span class="text-danger">
<strong>{{ $errors->first('username') }}</strong>
</span>
@endif
</div>
</div>
<!-- /.col -->
<div class="col-sm-2 col-md-1" style="margin-top: 23px">
<button type="submit" class="btn btn-primary btn-block btn-flat">Search</button>
</div>
<!-- /.col -->
</form>
</div>
<div style="overflow-x:auto;">
<table id="example1" class="table table-bordered table-striped table-responsive">
<thead>
<tr>
<th>COUNTRY</th>
<th>YEAR</th>
<th>SPECIMEN</th>
<th>PATHOGEN</th>
<th>GENDER</th>
<th>ORIGIN</th>
<th>AGEGROUP</th>
<th>ANTIBIOTIC</th>
<th>RESISTANT</th>
<th>INTERMEDIATE</th>
<th>NONSUSCEPTIBLE</th>
<th>SUSCEPTIBLE</th>
<th>UNKNOWN_NO_AST</th>
<th>UNKNOWN_NO_BREAKPOINTS</th>
<th>BATCHID</th>
</tr>
</thead>
<tbody>
@foreach($risx as $risx )
<tr>
<td> NP </td>
<td>{{ $risx->year }}</td>
<td>{{ $risx->specimen }}</td>
<td>{{ $risx->pathogen }}</td>
<td>{{ $risx->sex }} </td>
<td>UNK</td>
<td>{{ $risx->age }}</td>
{{-- <td>{{ $risx->age }}</td> --}}
<td> {{ $risx->antibiotic }} </td>
<td>
@if (!empty($risx->resistance))
{{ $risx->resistance }}
@else
0
@endif
</td>
<td>
@if ($risx->intermidiate != Null)
{{ $risx->intermidiate }}
@else
0
@endif
</td>
<td>
@if ($risx->ns != Null)
{{ $risx->ns }}
@else
0
@endif
</td>
<td>
@if ($risx->susceptable != Null)
{{ $risx->susceptable }}
@else
0
@endif
</td>
<td>
@if ($risx->none != Null)
{{ $risx->none }}
@else
0
@endif
</td>
<td> 0 </td>
<td> DS1 </td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<!-- /.box-body -->
</div>
</section>
@endsection

View File

@@ -0,0 +1,100 @@
@extends('layouts')
@section('title')
Sample File
@endsection
@section('content')
<section class="content-header">
</section>
<!-- Small boxes (Stat box) -->
<section class="content">
<div class="box box-warning">
<div class="box-header">
<h3 class="box-title">AMR: Sample File</h3>
</div>
<div class="box-body">
<div class="row">
<form method="GET" action="{{ route('sample_file') }}">
<div class="col-sm-4 col-md-2">
<div class="form-group has-feedback">
<label>Gender:</label>
<select class="form-control" name="gender">
<option {{ ($sex == "All")? 'selected' : '' }} value="all">All</option>
<option {{ ($sex == 'M')? 'selected' : '' }} value="M">Male</option>
<option {{ ($sex == 'F')? 'selected' : '' }} value="F">Female</option>
<option {{ ($sex == 'UNK')? 'selected' : '' }} value="UNK">Unknown</option>
</select>
@if ($errors->has('gender'))
<span class="text-danger">
<strong>{{ $errors->first('gender') }}</strong>
</span>
@endif
</div>
</div>
<div class="col-sm-4 col-md-2">
<div class="form-group has-feedback">
<label>Year:</label>
<select class="form-control" name="date">
<option value="all">All</option>
@foreach ($data as $item)
<option {{ ($item->year == $date)? 'selected' : '' }}>{{ $item->year }}</option>
@endforeach
</select>
@if ($errors->has('username'))
<span class="text-danger">
<strong>{{ $errors->first('username') }}</strong>
</span>
@endif
</div>
</div>
<!-- /.col -->
<div class="col-sm-2 col-md-1" style="margin-top: 23px">
<button type="submit" class="btn btn-primary btn-block btn-flat">Search</button>
</div>
<!-- /.col -->
</form>
</div>
<div style="overflow-x:auto;">
<table id="example1" class="table table-bordered table-striped table-responsive">
<thead>
<tr>
<th>COUNTRY</th>
<th>YEAR</th>
<th>SPECIMEN</th>
<th>GENDER</th>
<th>ORIGIN</th>
<th>AGEGROUP</th>
<th>NUMSAMPLEDPATIENTS</th>
<th>BATCHID</th>
</tr>
</thead>
<tbody>
@foreach($sample_file as $sample_file )
<tr>
<td> NP </td>
<td>{{ $sample_file->year }}</td>
<td>{{ $sample_file->specimen }}</td>
<td>{{ $sample_file->sex }} </td>
<td> UNK </td>
<td>{{ $sample_file->age }}</td>
<td>{{ $sample_file->value }}</td>
<td> DS1 </td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<!-- /.box-body -->
</div>
</section>
@endsection

View File

@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script type="text/javascript" src="{{asset('mystyle')}}/tableExport/libs/FileSaver/FileSaver.min.js"></script>
<script type="text/javascript" src="{{asset('mystyle')}}/tableExport/tableExport.min.js"></script>
<script type="text/javascript">
$(document).ready(function(e){
$("#txt").click(function(e){
$("#example1").tableExport({
type: 'txt',
escape: 'false',
});
});
});
// $('#tableID').tableExport(
// {type:'txt',escape:'false'}
// );
</script>
</head>
<body>
<button id="txt">TEXT</button>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,100 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Nunito', sans-serif;
font-weight: 200;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.top-right {
position: absolute;
right: 10px;
top: 18px;
}
.content {
text-align: center;
}
.title {
font-size: 84px;
}
.links > a {
color: #636b6f;
padding: 0 25px;
font-size: 13px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.m-b-md {
margin-bottom: 30px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@auth
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ route('login') }}">Login</a>
@if (Route::has('register'))
<a href="{{ route('register') }}">Register</a>
@endif
@endauth
</div>
@endif
<div class="content">
<div class="title m-b-md">
Laravel
</div>
<div class="links">
<a href="https://laravel.com/docs">Docs</a>
<a href="https://laracasts.com">Laracasts</a>
<a href="https://laravel-news.com">News</a>
<a href="https://blog.laravel.com">Blog</a>
<a href="https://nova.laravel.com">Nova</a>
<a href="https://forge.laravel.com">Forge</a>
<a href="https://vapor.laravel.com">Vapor</a>
<a href="https://github.com/laravel/laravel">GitHub</a>
</div>
</div>
</div>
</body>
</html>