resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -0,0 +1,72 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/html5-editor/bootstrap-wysihtml5.css') }}" rel="stylesheet">
@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.create_resource') }}</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><a href="/resources/index">{{ __('resources.resources') }}</a></li>
<li class="active">{{ __('resources.create') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
{{ Form::open(['route' => 'resources.store', 'data-toggle' => 'validator', 'files' => true]) }}
<div class="form-group">
{{ Form::label('title', __('resources.title')) }}
{{ Form::text('title', '', ['class' => 'form-control compulsory']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('body', __('resources.body')) }}
{{ Form::textArea('body', '', ['class' => 'textarea_editor form-control compulsory', 'required', 'rows' => 5]) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('attach_path', __('resources.attachment_path')) }}
{{ Form::file('attach_path', null ) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('category_id', __('resources.categories')) }} &nbsp;&nbsp;
{{ Form::select('category_id', $resource_categories, ['class'=>'form-control']) }}
&nbsp;&nbsp;<a href="/resource_categories/create">{{ __('resources.add_category') }}</a>
<div class="help-block with-errors"></div>
</div>
{{ Form::button(__('resources.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('resources.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>
<script type="text/javascript" src="{{ asset('elite/bower_components/html5-editor/wysihtml5-0.3.0.js') }}"></script>
<script type="text/javascript" src="{{ asset('elite/bower_components/html5-editor/bootstrap-wysihtml5.js') }}"></script>
<script>
$(document).ready(function() {
$('.textarea_editor').wysihtml5();
});
</script>
@endpush
@@ -0,0 +1,62 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/html5-editor/bootstrap-wysihtml5.css') }}" rel="stylesheet">
@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.edit_resource') }}</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><a href="/resources/index">{{ __('resources.resources') }}</a></li>
<li class="active">{{ __('resources.edit') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
{{ Form::model($resource, ['method' => 'PUT', 'route' => ['resources.update',$resource], 'data-toggle' => 'validator']) }}
<div class="form-group">
{{ Form::label('title', __('resources.title')) }}
{{ Form::text('title', $resource->title, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('body', __('resources.body')) }}
{{ Form::textArea('body', $resource->body, ['class' => 'textarea_editor form-control compulsory', 'required', 'rows' => 5]) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('attach_path', __('resources.attachment_path')) }}
{{ Form::file('attach_path', null) }}
{{ Form::text('current_file', $resource->attach_path, ['class' => 'form-control', 'hidden']) }}
</div>
{{ Form::button(__('resources.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('resources.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>
<script type="text/javascript" src="{{ asset('elite/bower_components/html5-editor/wysihtml5-0.3.0.js') }}"></script>
<script type="text/javascript" src="{{ asset('elite/bower_components/html5-editor/bootstrap-wysihtml5.js') }}"></script>
<script>
$(document).ready(function () {
$('.textarea_editor').wysihtml5();
});
</script>
@endpush
@@ -0,0 +1,91 @@
@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.activate_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><a href="/resources/index">{{ __('resources.resources') }}</a></li>
<li class="active">{{ __('resources.activate') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@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.attachment_path') }}</th>
<th>{{ __('resources.categories') }}</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>{{ __('resources.title') }}</th>
<th>{{ __('resources.body') }}</th>
<th>{{ __('resources.attachment_path') }}</th>
<th>{{ __('resources.categories') }}</th>
<th></th>
</tr>
</tfoot>
<tbody>
@foreach($resources as $resource)
<tr>
<td>{{ $resource->title }}</td>
<td>{{ $resource->body }}</td>
<td>{{ $resource->attach_path }}</td>
<td>{{ $categories[$resource->category_id] }}</td>
<td>
{{ Form::model($resource->id ,['method' => 'POST', 'route' => ['resources.activate', $resource->id]]) }}
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('resources.are_you_sure');?>')"><i class="fa fa-check"></i> {{ __('resources.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,114 @@
@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() }}
&nbsp;&nbsp;<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