first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<div class="accordion-content clearfix">
<div class="col-lg-3 col-md-4">
<div class="accordion-box">
<div class="panel-group" id="{{ $name }}">
@foreach ($groups as $group => $options)
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a
@if (count($groups) > 1)
class="{{ ($options['active'] ?? false) ? '' : 'collapsed' }} {{ $tabs->group($group)->hasError() ? 'has-error' : '' }}"
data-toggle="collapse"
data-parent="#{{ $name }}"
href="#{{ $group }}"
@endif
>
{{ $options['title'] }}
</a>
</h4>
</div>
<div id="{{ $group }}" class="panel-collapse collapse {{ ($options['active'] ?? false) ? 'in' : '' }}">
<div class="panel-body">
<ul class="accordion-tab nav nav-tabs">
{{ $tabs->group($group)->navs() }}
</ul>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
<div class="col-lg-9 col-md-8">
<div class="accordion-box-content">
<div class="tab-content clearfix">
{{ $contents }}
@include('admin::form.footer')
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
@section('title')
@isset($subtitle)
{{ "{$subtitle} - {$title}" }}
@else
{{ $title }}
@endisset
@endsection
@section('content_header')
<h3>{{ $title }}</h3>
<ol class="breadcrumb">
<li><a href="{{ route('admin.dashboard.index') }}">{{ trans('admin::dashboard.dashboard') }}</a></li>
{{ $slot }}
</ol>
@endsection

View File

@@ -0,0 +1,67 @@
@section('content')
<div class="row">
<div class="btn-group pull-right">
@if (isset($buttons, $name))
@foreach ($buttons as $view)
<a href="{{ route("admin.{$resource}.{$view}") }}" class="btn btn-primary btn-actions btn-{{ $view }}">
{{ trans("admin::resource.{$view}", ['resource' => $name]) }}
</a>
@endforeach
@else
{{ $buttons ?? '' }}
@endif
</div>
</div>
<div class="box box-primary">
<div class="box-body index-table" id="{{ isset($resource) ? "{$resource}-table" : '' }}">
@if (isset($thead))
@include('admin::components.table')
@else
{{ $slot }}
@endif
</div>
</div>
@endsection
@isset($name)
@push('shortcuts')
@if (isset($buttons) && in_array('create', $buttons))
<dl class="dl-horizontal">
<dt><code>c</code></dt>
<dd>{{ trans('admin::resource.create', ['resource' => $name]) }}</dd>
</dl>
@endif
<dl class="dl-horizontal">
<dt><code>Del</code></dt>
<dd>{{ trans('admin::resource.delete', ['resource' => $name]) }}</dd>
</dl>
@endpush
@push('scripts')
<script>
@if (isset($buttons) && in_array('create', $buttons))
keypressAction([
{ key: 'c', route: '{{ route("admin.{$resource}.create") }}'}
]);
@endif
Mousetrap.bind('del', function () {
$('.btn-delete').trigger('click');
});
Mousetrap.bind('backspace', function () {
$('.btn-delete').trigger('click');
});
@isset($resource)
DataTable.setRoutes('#{{ $resource }}-table .table', {
index: '{{ "admin.{$resource}.index" }}',
edit: '{{ "admin.{$resource}.edit" }}',
destroy: '{{ "admin.{$resource}.destroy" }}',
});
@endisset
</script>
@endpush
@endisset

View File

@@ -0,0 +1,11 @@
<div class="table-responsive">
<table class="table table-striped table-hover {{ $class ?? '' }}" id="{{ $id ?? '' }}">
<thead>{{ $thead }}</thead>
<tbody>{{ $slot }}</tbody>
@isset($tfoot)
<tfoot>{{ $tfoot }}</tfoot>
@endisset
</table>
</div>

View File

@@ -0,0 +1,8 @@
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="single-grid total-customers">
<h4>{{ trans('admin::dashboard.total_customers') }}</h4>
<i class="fa fa-users pull-left" aria-hidden="true"></i>
<span class="pull-right">{{ $totalCustomers }}</span>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="single-grid total-orders">
<h4>{{ trans('admin::dashboard.total_orders') }}</h4>
<i class="fa fa-shopping-cart pull-left" aria-hidden="true"></i>
<span class="pull-right">{{ $totalOrders }}</span>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="single-grid total-products">
<h4>{{ trans('admin::dashboard.total_products') }}</h4>
<i class="fa fa-cubes" aria-hidden="true"></i>
<span class="pull-right">{{ $totalProducts }}</span>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="single-grid total-sales">
<h4>{{ trans('admin::dashboard.total_sales') }}</h4>
<i class="fa fa-money pull-left" aria-hidden="true"></i>
<span class="pull-right">{{ $totalSales->format() }}</span>
</div>
</div>

View File

@@ -0,0 +1,46 @@
@extends('admin::layout')
@section('title', trans('admin::dashboard.dashboard'))
@section('content_header')
<h2 class="pull-left">{{ trans('admin::dashboard.dashboard') }}</h2>
@endsection
@section('content')
<div class="grid clearfix">
<div class="row">
@hasAccess('admin.orders.index')
@include('admin::dashboard.grids.total_sales')
@include('admin::dashboard.grids.total_orders')
@endHasAccess
@hasAccess('admin.products.index')
@include('admin::dashboard.grids.total_products')
@endHasAccess
@hasAccess('admin.users.index')
@include('admin::dashboard.grids.total_customers')
@endHasAccess
</div>
</div>
<div class="row">
<div class="col-md-7">
@hasAccess('admin.orders.index')
@include('admin::dashboard.panels.sales_analytics')
@endHasAccess
@hasAccess('admin.orders.index')
@include('admin::dashboard.panels.latest_orders')
@endHasAccess
</div>
<div class="col-md-5">
@include('admin::dashboard.panels.latest_search_terms')
@hasAccess('admin.reviews.index')
@include('admin::dashboard.panels.latest_reviews')
@endHasAccess
</div>
</div>
@endsection

View File

@@ -0,0 +1,50 @@
<div class="dashboard-panel">
<div class="grid-header">
<h4><i class="fa fa-shopping-cart" aria-hidden="true"></i>{{ trans('admin::dashboard.latest_orders') }}</h4>
</div>
<div class="clearfix"></div>
<div class="table-responsive anchor-table">
<table class="table">
<thead>
<tr>
<th>{{ trans('admin::dashboard.table.latest_orders.order_id') }}</th>
<th>{{ trans('admin::dashboard.table.customer') }}</th>
<th>{{ trans('admin::dashboard.table.latest_orders.status') }}</th>
<th>{{ trans('admin::dashboard.table.latest_orders.total') }}</th>
</tr>
</thead>
<tbody>
@forelse ($latestOrders as $latestOrder)
<tr>
<td>
<a href="{{ route('admin.orders.show', $latestOrder) }}">
{{ $latestOrder->id }}
</a>
</td>
<td>
<a href="{{ route('admin.orders.show', $latestOrder) }}">
{{ $latestOrder->customer_full_name }}
</a>
</td>
<td>
<a href="{{ route('admin.orders.show', $latestOrder) }}">
{{ $latestOrder->status() }}
</a>
</td>
<td>
<a href="{{ route('admin.orders.show', $latestOrder) }}">
{{ $latestOrder->total->format() }}
</a>
</td>
</tr>
@empty
<tr>
<td class="empty" colspan="5">{{ trans('admin::dashboard.no_data') }}</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,44 @@
<div class="dashboard-panel">
<div class="grid-header">
<h4><i class="fa fa-comments-o" aria-hidden="true"></i>{{ trans('admin::dashboard.latest_reviews') }}</h4>
</div>
<div class="clearfix"></div>
<div class="table-responsive anchor-table">
<table class="table">
<thead>
<tr>
<th>{{ trans('admin::dashboard.table.latest_reviews.product') }}</th>
<th>{{ trans('admin::dashboard.table.customer') }}</th>
<th>{{ trans('admin::dashboard.table.latest_reviews.rating') }}</th>
</tr>
</thead>
<tbody>
@forelse ($latestReviews as $latestReview)
<tr>
<td>
<a href="{{ route('admin.reviews.edit', $latestReview) }}">
{{ $latestReview->product->name }}
</a>
</td>
<td>
<a href="{{ route('admin.reviews.edit', $latestReview) }}">
{{ $latestReview->reviewer_name }}
</a>
</td>
<td>
<a href="{{ route('admin.reviews.edit', $latestReview) }}">
{{ $latestReview->rating }}
</a>
</td>
</tr>
@empty
<tr>
<td class="empty" colspan="5">{{ trans('admin::dashboard.no_data') }}</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<div class="dashboard-panel">
<div class="grid-header">
<h4><i class="fa fa-search" aria-hidden="true"></i>{{ trans('admin::dashboard.latest_search_terms') }}</h4>
</div>
<div class="clearfix"></div>
<div class="table-responsive search-terms">
<table class="table">
<thead>
<tr>
<th>{{ trans('admin::dashboard.table.latest_search_terms.keyword') }}</th>
<th>{{ trans('admin::dashboard.table.latest_search_terms.results') }}</th>
<th>{{ trans('admin::dashboard.table.latest_search_terms.hits') }}</th>
</tr>
</thead>
<tbody>
@forelse ($latestSearchTerms as $latestSearchTerm)
<tr>
<td>{{ $latestSearchTerm->term }}</td>
<td>{{ $latestSearchTerm->results }}</td>
<td>{{ $latestSearchTerm->hits }}</td>
</tr>
@empty
<tr>
<td class="empty" colspan="5">{{ trans('admin::dashboard.no_data') }}</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<div class="sales-analytics">
<div class="grid-header clearfix">
<h4>
<i class="fa fa-bar-chart" aria-hidden="true"></i>{{ trans('admin::dashboard.sales_analytics_title') }}
</h4>
</div>
<div class="canvas">
<canvas class="chart" width="400" height="250"></canvas>
</div>
</div>
@push('globals')
<script>
FleetCart.langs['admin::dashboard.sales_analytics.orders'] = '{{ trans('admin::dashboard.sales_analytics.orders') }}';
FleetCart.langs['admin::dashboard.sales_analytics.sales'] = '{{ trans('admin::dashboard.sales_analytics.sales') }}';
</script>
@endpush

View File

@@ -0,0 +1,7 @@
<div class="world-map">
<div class="grid-header clearfix">
<h4><i class="fa fa-globe" aria-hidden="true"></i>World Map</h4>
</div>
<div id="world-map" style="width: 600px; height: 305px;"></div>
</div>

View File

@@ -0,0 +1,7 @@
<div class="form-group">
<div class="{{ ($buttonOffset ?? true) ? 'col-md-offset-2' : '' }} col-md-10">
<button type="submit" class="btn btn-primary" data-loading>
{{ trans('admin::admin.buttons.save') }}
</button>
</div>
</div>

View File

@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html lang="{{ locale() }}">
<head>
<base href="{{ url('/') }}">
<meta charset="UTF-8">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>
@yield('title') - {{ setting('store_name') }} Admin
</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:600|Roboto:400,500" rel="stylesheet">
@foreach ($assets->allCss() as $css)
<link media="all" type="text/css" rel="stylesheet" href="{{ v($css) }}">
@endforeach
@stack('styles')
@include('admin::partials.globals')
</head>
<body class="skin-blue sidebar-mini offcanvas clearfix {{ is_rtl() ? 'rtl' : 'ltr' }}">
<div class="left-side"></div>
@include('admin::partials.sidebar')
<div class="wrapper">
<div class="content-wrapper">
@include('admin::partials.top_nav')
<section class="content-header clearfix">
@yield('content_header')
</section>
<section class="content">
@include('admin::partials.notification')
@yield('content')
</section>
<div id="notification-toast"></div>
</div>
</div>
@include('admin::partials.footer')
@include('admin::partials.confirmation_modal')
@foreach ($assets->allJs() as $js)
<script src="{{ v($js) }}"></script>
@endforeach
@stack('scripts')
</body>
</html>

View File

@@ -0,0 +1,17 @@
@if ($paginator->hasPages())
<ul class="pagination">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="disabled"><span>{{ trans('admin::admin.pagination.previous') }}</span></li>
@else
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">{{ trans('admin::admin.pagination.previous') }}</a></li>
@endif
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<li><a href="{{ $paginator->nextPageUrl() }}" rel="next">{{ trans('admin::admin.pagination.next') }}</a></li>
@else
<li class="disabled"><span>{{ trans('admin::admin.pagination.next') }}</span></li>
@endif
</ul>
@endif

View File

@@ -0,0 +1,34 @@
<div class="modal fade" id="confirmation-modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<i class="fa fa-times" aria-hidden="true"></i>
</button>
<h3 class="modal-title">{{ trans('admin::admin.delete.confirmation') }}</h3>
</div>
<div class="modal-body">
<div class="default-message">
{{ $message ?? trans('admin::admin.delete.confirmation_message') }}
</div>
</div>
<div class="modal-footer">
<form method="POST" id="confirmation-form">
{{ csrf_field() }}
{{ method_field('delete') }}
<button type="button" class="btn btn-default cancel" data-dismiss="modal">
{{ trans('admin::admin.buttons.cancel') }}
</button>
<button type="submit" class="btn btn-danger delete">
{{ trans('admin::admin.buttons.delete') }}
</button>
</form>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
<div class="modal fade" id="keyboard-shortcuts-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<a type="button" class="close" data-dismiss="modal" aria-label="Close">&times;</a>
<h4 class="modal-title">{{ trans('admin::admin.shortcuts.available_shortcuts') }}</h4>
</div>
<div class="modal-body">
<dl class="dl-horizontal">
<dt><code>?</code></dt>
<dd>{{ trans('admin::admin.shortcuts.this_menu') }}</dd>
</dl>
@stack('shortcuts')
</div>
</div>
</div>
</div>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<span>v{{ fleetcart_version() }}</span>
</div>
<a href="#" data-toggle="modal" data-target="#keyboard-shortcuts-modal">
<i class="fa fa-keyboard-o"></i>
</a>&nbsp;
<span>
Copyright &copy; {{ date('Y') }} <a href="{{ route('home') }}"
target="_blank">{{ setting('store_name') }}</a>
</span>
</footer>

View File

@@ -0,0 +1,20 @@
<script>
window.FleetCart = {
version: '{{ fleetcart_version() }}',
csrfToken: '{{ csrf_token() }}',
baseUrl: '{{ url('/') }}',
rtl: {{ is_rtl() ? 'true' : 'false' }},
langs: {},
data: {},
errors: {},
selectize: [],
};
FleetCart.langs['admin::admin.buttons.delete'] = '{{ trans('admin::admin.buttons.delete') }}';
FleetCart.langs['media::media.file_manager.title'] = '{{ trans('media::media.file_manager.title') }}';
FleetCart.langs['media::messages.image_has_been_added'] = '{{ trans('media::messages.image_has_been_added') }}';
</script>
@stack('globals')
@routes

View File

@@ -0,0 +1,23 @@
@if (session()->has('success'))
<div class="alert alert-success fade in alert-dismissable clearfix">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<div class="alert-icon">
<i class="fa fa-check" aria-hidden="true"></i>
</div>
<span class="alert-text">{{ session('success') }}</span>
</div>
@endif
@if (session()->has('error'))
<div class="alert alert-danger fade in alert-dismissable clearfix">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<div class="alert-icon">
<i class="fa fa-exclamation" aria-hidden="true"></i>
</div>
<span class="alert-text">{{ session('error') }}</span>
</div>
@endif

View File

@@ -0,0 +1,15 @@
@push('globals')
<script>
FleetCart.selectize.push({
load: function (query, callback) {
var url = this.$input.data('url');
if (url === undefined || query.length === 0) {
return callback();
}
$.get(url + '?query=' + query, callback, 'json');
}
});
</script>
@endpush

View File

@@ -0,0 +1,15 @@
<aside class="main-sidebar">
<header class="main-header clearfix">
<a class="logo" href="{{ route('admin.dashboard.index') }}">
<span class="logo-lg">{{ setting('store_name') }}</span>
</a>
<a href="javascript:void(0);" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<i aria-hidden="true" class="fa fa-bars"></i>
</a>
</header>
<section class="sidebar">
{!! $sidebar !!}
</section>
</aside>

View File

@@ -0,0 +1,4 @@
<div class="checkbox">
<input type="checkbox" class="select-row" value="{{ $entity->id }}" id="{{ $id = str_random() }}">
<label for="{{ $id }}"></label>
</div>

View File

@@ -0,0 +1,3 @@
<span data-toggle="tooltip" title="{{ is_null($date) ? '' : $date->toFormattedDateString() }}">
{!! is_null($date) ? '&mdash;' : $date->diffForHumans() !!}
</span>

View File

@@ -0,0 +1,7 @@
<div class="thumbnail-holder">
@if ($file->exists)
<img src="{{ $file->path }}" alt="thumbnail">
@else
<i class="fa fa-picture-o"></i>
@endif
</div>

View File

@@ -0,0 +1,6 @@
<th>
<div class="checkbox">
<input type="checkbox" class="select-all" id="{{ $name ?? '' }}-select-all">
<label for="{{ $name ?? '' }}-select-all"></label>
</div>
</th>

View File

@@ -0,0 +1,37 @@
<nav class="navbar navbar-static-top clearfix">
<ul class="nav navbar-nav clearfix">
<li class="visit-store hidden-sm hidden-xs">
<a href="{{ route('home') }}">
<i class="fa fa-desktop"></i>
{{ trans('admin::admin.visit_store') }}
</a>
</li>
<li class="dropdown top-nav-menu pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-user-circle-o"></i><span>{{ $currentUser->first_name }}</span>
</a>
<ul class="dropdown-menu">
<li><a href="{{ route('admin.profile.edit') }}">{{ trans('user::users.profile') }}</a></li>
<li><a href="{{ route('admin.logout') }}">{{ trans('user::auth.logout') }}</a></li>
</ul>
</li>
@if (count(supported_locales()) > 1)
<li class="language dropdown top-nav-menu pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span>{{ strtoupper(locale()) }}</span>
</a>
<ul class="dropdown-menu">
@foreach (supported_locales() as $locale => $language)
<li class="{{ $locale === locale() ? 'active' : '' }}">
<a href="{{ localized_url($locale) }}">{{ $language['name'] }}</a>
</li>
@endforeach
</ul>
</li>
@endif
</ul>
</nav>