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,43 @@
@extends('layouts.main')
@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">{{ __('countries.add_country') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('countries.dashboard') }}</a></li>
<li><a href="/countries/index">{{ __('countries.countries') }}</a></li>
<li class="active">{{ __('countries.create') }}</li>
</ol>
</div>
</div>
@include('clinical_data::countries.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::open(['route' => 'countries.store', 'data-toggle' => 'validator']) }}
<div class="form-group">
{{ Form::label('name',__('countries.country_name'))}}
{{ Form::text('name','',['class' => 'form-control compulsory', 'required', 'placeholder'=>'e.g. Uganda']) }}
<div class="help-block with-errors"></div>
</div>
{{ Form::button(__('countries.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('countries.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
@endpush
@@ -0,0 +1,43 @@
@extends('layouts.main')
@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">{{ __('countries.edit_countries') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('countries.dashboard') }}</a></li>
<li><a href="/countries/index">{{ __('countries.countries') }}</a></li>
<li class="active">{{ __('countries.edit') }}</li>
</ol>
</div>
</div>
@include('clinical_data::countries.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::model($country, ['method' => 'PUT', 'route' => ['countries.update',$country], 'data-toggle' => 'validator']) }}
<div class="form-group">
{{ Form::label('name', __('countries.countries_name')) }}
{{ Form::text('name', $country->name, ['class' => 'form-control compulsory', 'required', 'placeholder'=>'e.g. Uganda']) }}
<div class="help-block with-errors"></div>
</div>
{{ Form::button(__('countries.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('countries.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
@endpush
@@ -0,0 +1,84 @@
@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">{{ __('countries.activate_countries') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('countries.dashboard') }}</a></li>
<li><a href="/countries/index">{{ __('countries.countries') }}</a></li>
<li class="active">{{ __('countries.activate') }}</li>
</ol>
</div>
</div>
@include('clinical_data::countries.menu')
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
<p class="text-muted m-b-30">{{ __('countries.export_data') }}</p>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{{ __('countries.country_name') }}</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>{{ __('countries.country_name') }}</th>
<th></th>
</tr>
<tbody>
@foreach($countries as $country)
<tr>
<td>{{ $country->name }}</td>
<td>
{{ Form::model($country->id ,['method' => 'POST', 'route' => ['countries.activate', $country->id]]) }}
<button type="submit" class="btn btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> {{ __('countries.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
@@ -0,0 +1,88 @@
@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">{{ __('countries.countries') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('countries.dashboard') }}</a></li>
<li><a href="/countries/index">{{ __('countries.occupations') }}</a></li>
<li class="active">{{ __('countries.view') }}</li>
</ol>
</div>
</div>
@include('clinical_data::countries.menu')
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
<p class="text-muted m-b-30">{{ __('countries.export_data') }}</p>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{{ __('countries.country_name') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>{{ __('countries.country_name') }}</th>
<th></th>
<th></th>
</tr>
</tfoot>
<tbody>
@foreach($countries as $country)
<tr>
<td>{{ $country->name}}</td>
<td>
<a href="/countries/{{ $country->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('countries.edit') }}</a>
</td>
<td>
{{ Form::model($country->id ,['method' => 'DELETE', 'route' => ['countries.destroy', $country->id]]) }}
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('countries.delete') }}</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',
pageLength: 50,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
</script>
@endpush
@@ -0,0 +1,7 @@
<div class="panel panel-default">
<div class="panel-body">
<a href="{{ route('countries.create') }}" class="nav-item btn btn-default ti-plus"> {{ __('countries.add_country') }}</a>
<a href="{{ route('countries.index') }}" class="nav-item btn btn-default ti-pencil"> {{ __('countries.view_country') }}</a>
<a href="{{ route('countries.inactive') }}" class="nav-item btn btn-default ti-pencil"> {{ __('countries.activate_country') }}</a>
</div>
</div>