inital commit
This commit is contained in:
113
resources/views/basic/pagination.blade.php
Normal file
113
resources/views/basic/pagination.blade.php
Normal file
@@ -0,0 +1,113 @@
|
||||
@if ($paginator->total()>0)
|
||||
|
||||
<?php
|
||||
$items_count = 3;
|
||||
$show_first_item = false;
|
||||
$show_last_item = false;
|
||||
|
||||
$limit_start= 1;
|
||||
$limit_end= 1;
|
||||
if (count($elements[0]) > $items_count*2) {
|
||||
$limit_start= $paginator->currentPage() - 1;
|
||||
$limit_end= $limit_start + 2;
|
||||
}
|
||||
|
||||
if($paginator->currentPage() >= $items_count) {
|
||||
$show_first_item= true;
|
||||
}
|
||||
if($paginator->lastPage() > $paginator->currentPage() + 1) {
|
||||
$show_last_item= true;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
Showing {{($paginator->currentpage()-1)*$paginator->perpage()+1}}
|
||||
to {{($paginator->hasMorePages())?
|
||||
($paginator->currentpage()*$paginator->perpage()):
|
||||
$paginator->total()}}
|
||||
of {{$paginator->total()}} entries
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="pull-right">
|
||||
<nav aria-label="Page navigation">
|
||||
<ul class="pagination justify-content-end">
|
||||
@if ($paginator->onFirstPage())
|
||||
<li class="page-item disabled">
|
||||
<a class="page-link" href="#" tabindex="-1">< Previous </a>
|
||||
</li>
|
||||
@else
|
||||
<li class="page-item"><a class="page-link" href="{{ $paginator->previousPageUrl() }}">< Previous </a></li>
|
||||
@endif
|
||||
|
||||
@foreach ($elements as $element)
|
||||
{{-- "Three Dots" Separator --}}
|
||||
@if (is_string($element))
|
||||
<li class="page-item disabled"><span class="">{{ $element }}</span></li>
|
||||
@endif
|
||||
|
||||
{{-- Array Of Links --}}
|
||||
@if (is_array($element))
|
||||
|
||||
@foreach ($element as $page => $url)
|
||||
|
||||
@if(count($element)>5)
|
||||
|
||||
@if($show_first_item and $page == 1)
|
||||
<li class="page-item"><a class="page-link" href="{{ $url }}">{{ $page }}</a></li>
|
||||
@if($paginator->currentPage()!= 3)
|
||||
<li class="page-item disabled"><a class="page-link">...</a></li>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if($page >= $limit_start and $page <= $limit_end)
|
||||
@if ($page == $paginator->currentPage())
|
||||
<li class="page-item active"><a href=""><span class="page-link">{{ $page }}</span></a></li>
|
||||
@else
|
||||
<li class="page-item"><a class="page-link" href="{{ $url }}">{{ $page }}</a></li>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if($show_last_item and $page == $paginator->lastPage())
|
||||
@if($paginator->currentPage()!= $paginator->lastPage()-2)
|
||||
<li class="page-item disabled"><a class="page-link">...</a></li>
|
||||
@endif
|
||||
<li class="page-item"><a class="page-link" href="{{ $url }}">{{ $page }}</a></li>
|
||||
@endif
|
||||
|
||||
@else
|
||||
|
||||
@if ($page == $paginator->currentPage())
|
||||
<li class="page-item active">
|
||||
<a class="page-link">{{ $page }}</a>
|
||||
</li>
|
||||
@else
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="{{ $url }}">{{ $page }}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@if ($paginator->hasMorePages())
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next"> Next ></a>
|
||||
</li>
|
||||
@else
|
||||
<li class="page-item disabled">
|
||||
<a class="page-link" href="#"> Next ></a>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
51
resources/views/basic/terms_and_condition.blade.php
Normal file
51
resources/views/basic/terms_and_condition.blade.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<!-- Meta, title, CSS, favicons, etc. -->
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="shortcut icon" href="{{ asset('images/favicon.png') }}"/>
|
||||
<title>{{ config('app.name') }}</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="{{ asset('theme/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
<!-- Font Awesome -->
|
||||
<link href="{{ asset('theme/font-awesome/css/font-awesome.min.css') }}" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body class="nav-sm"> <!-- nav-sm -->
|
||||
|
||||
<div class="container body" style="margin-top: 10px">
|
||||
<div class="main_container" >
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
|
||||
<div class="panel-heading text-center">
|
||||
<h1>Terms of service</h1>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_content">
|
||||
{{empty($content['terms_service'])?'':print_r($content['terms_service'])}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
57
resources/views/basic/terms_and_service_entry.blade.php
Normal file
57
resources/views/basic/terms_and_service_entry.blade.php
Normal file
@@ -0,0 +1,57 @@
|
||||
@extends('layouts.admin')
|
||||
@push('css')
|
||||
<link href="{{ asset('js/summernote/summernote.css') }}" rel="stylesheet">
|
||||
@endpush
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
|
||||
<div class="panel-heading">
|
||||
<h1>Terms of service</h1>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<form method="post" action="{{route('terms.of.service')}}" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="id" value="{{empty($content['id'])?'':$content['id']}}" />
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
|
||||
<input type="text" name="title" value="{{empty($content['title'])?'terms and service':$content['title']}}" class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Description</label>
|
||||
|
||||
<textarea id="summernote" name="body" > {{empty($content['terms_service'])?'':$content['terms_service']}}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
@if(isShowContent('terms.of.service'))
|
||||
<button type="submit" class="btn btn-success btn-block">Publish</button>
|
||||
@endif
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@push('script')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
let selctor=$('#summernote');
|
||||
common_helper.init_summernote(selctor);
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
Reference in New Issue
Block a user