merged
This commit is contained in:
commit
84bc6c0c60
|
|
@ -200,6 +200,7 @@ return [
|
|||
Konekt\Concord\ConcordServiceProvider::class,
|
||||
|
||||
//Webkul packages
|
||||
Webkul\Theme\Providers\ThemeServiceProvider::class,
|
||||
Webkul\User\Providers\UserServiceProvider::class,
|
||||
Webkul\Admin\Providers\AdminServiceProvider::class,
|
||||
Webkul\Ui\Providers\UiServiceProvider::class,
|
||||
|
|
@ -210,7 +211,6 @@ return [
|
|||
Webkul\Customer\Providers\CustomerServiceProvider::class,
|
||||
Webkul\Inventory\Providers\InventoryServiceProvider::class,
|
||||
Webkul\Product\Providers\ProductServiceProvider::class,
|
||||
Webkul\Theme\Providers\ThemeServiceProvider::class,
|
||||
Webkul\Checkout\Providers\CheckoutServiceProvider::class,
|
||||
Webkul\Shipping\Providers\ShippingServiceProvider::class,
|
||||
Webkul\Payment\Providers\PaymentServiceProvider::class,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'default' => 'bliss',
|
||||
'default' => 'default',
|
||||
|
||||
'themes' => [
|
||||
'default' => [
|
||||
|
|
@ -10,11 +10,11 @@ return [
|
|||
'name' => 'Dafault'
|
||||
],
|
||||
|
||||
'bliss' => [
|
||||
'views_path' => 'resources/themes/bliss/views',
|
||||
'assets_path' => 'public/themes/bliss/assets',
|
||||
'name' => 'Bliss',
|
||||
'parent' => 'default'
|
||||
]
|
||||
// 'bliss' => [
|
||||
// 'views_path' => 'resources/themes/bliss/views',
|
||||
// 'assets_path' => 'public/themes/bliss/assets',
|
||||
// 'name' => 'Bliss',
|
||||
// 'parent' => 'default'
|
||||
// ]
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace Webkul\Admin\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Auth\AuthenticationException;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
|
||||
/**
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Exception $exception
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function render($request, Exception $exception)
|
||||
{
|
||||
|
||||
if ($exception instanceof HttpException) {
|
||||
$statusCode = $exception->getStatusCode();
|
||||
|
||||
if(strpos($_SERVER['REQUEST_URI'], 'admin') !== false){
|
||||
return response(view('admin::errors.'.$statusCode, [
|
||||
'msg' => $exception->getMessage(),
|
||||
'code' => $statusCode
|
||||
]), $statusCode);
|
||||
}else {
|
||||
return response(view('shop::errors.'.$statusCode, [
|
||||
'msg' => $exception->getMessage(),
|
||||
'code' => $statusCode
|
||||
]), $statusCode);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return parent::render($request, $exception);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Webkul\Core\Http\Controllers;
|
||||
namespace Webkul\Admin\Http\Controllers\Customer;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
|
|
@ -40,31 +40,33 @@ Route::group(['middleware' => ['web']], function () {
|
|||
Route::get('dashboard', 'Webkul\Admin\Http\Controllers\DashboardController@index')->name('admin.dashboard.index');
|
||||
|
||||
//Customers Management Routes
|
||||
|
||||
Route::get('customers', 'Webkul\Core\Http\Controllers\CustomerController@index')->defaults('_config', [
|
||||
Route::get('customer', 'Webkul\Admin\Http\Controllers\Customer\CustomerController@index')->defaults('_config', [
|
||||
'view' => 'admin::customers.index'
|
||||
])->name('admin.customer.index');
|
||||
|
||||
Route::get('customers/orders', 'Webkul\Core\Http\Controllers\CustomerController@index')->defaults('_config',[
|
||||
Route::get('customer/orders', 'Webkul\Admin\Http\Controllers\Customer\CustomerController@index')->defaults('_config',[
|
||||
'view' => 'admin::customers.orders.index'
|
||||
])->name('admin.customer.orders.index');
|
||||
|
||||
Route::get('customers/create', 'Webkul\Core\Http\Controllers\CustomerController@create')->defaults('_config',[
|
||||
Route::get('customer/create', 'Webkul\Admin\Http\Controllers\Customer\CustomerController@create')->defaults('_config',[
|
||||
'view' => 'admin::customers.create'
|
||||
])->name('admin.customer.create');
|
||||
|
||||
Route::post('customers/create', 'Webkul\Core\Http\Controllers\CustomerController@store')->defaults('_config',[
|
||||
Route::post('customer/create', 'Webkul\Admin\Http\Controllers\Customer\CustomerController@store')->defaults('_config',[
|
||||
'redirect' => 'admin.customer.index'
|
||||
])->name('admin.customer.store');
|
||||
|
||||
Route::get('customers/edit/{id}', 'Webkul\Core\Http\Controllers\CustomerController@edit')->defaults('_config',[
|
||||
Route::get('customer/edit/{id}', 'Webkul\Admin\Http\Controllers\Customer\CustomerController@edit')->defaults('_config',[
|
||||
'view' => 'admin::customers.edit'
|
||||
])->name('admin.customer.edit');
|
||||
|
||||
Route::put('customers/edit/{id}', 'Webkul\Core\Http\Controllers\CustomerController@update')->defaults('_config', [
|
||||
Route::put('customer/edit/{id}', 'Webkul\Admin\Http\Controllers\Customer\CustomerController@update')->defaults('_config', [
|
||||
'redirect' => 'admin.customer.index'
|
||||
])->name('admin.customer.update');
|
||||
|
||||
Route::get('customers/delete/{id}', 'Webkul\Admin\Http\Controllers\CustomerController@destroy')->name('admin.customer.delete');
|
||||
|
||||
|
||||
Route::get('reviews', 'Webkul\Product\Http\Controllers\ReviewController@index')->defaults('_config',[
|
||||
'view' => 'admin::customers.review.index'
|
||||
])->name('admin.customer.review.index');
|
||||
|
|
@ -77,6 +79,7 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.customer.review.index'
|
||||
])->name('admin.customer.review.update');
|
||||
|
||||
|
||||
// Sales Routes
|
||||
Route::prefix('sales')->group(function () {
|
||||
// Sales Order Routes
|
||||
|
|
@ -153,6 +156,8 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.catalog.products.index'
|
||||
])->name('admin.catalog.products.update');
|
||||
|
||||
Route::get('/products/delete/{id}', 'Webkul\Product\Http\Controllers\ProductController@destroy')->name('admin.catalog.products.delete');
|
||||
|
||||
|
||||
// Catalog Category Routes
|
||||
Route::get('/categories', 'Webkul\Category\Http\Controllers\CategoryController@index')->defaults('_config', [
|
||||
|
|
@ -175,6 +180,8 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.catalog.categories.index'
|
||||
])->name('admin.catalog.categories.update');
|
||||
|
||||
Route::get('/categories/delete/{id}', 'Webkul\Category\Http\Controllers\CategoryController@destroy')->name('admin.catalog.categories.delete');
|
||||
|
||||
|
||||
// Catalog Attribute Routes
|
||||
Route::get('/attributes', 'Webkul\Attribute\Http\Controllers\AttributeController@index')->defaults('_config', [
|
||||
|
|
@ -197,9 +204,7 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.catalog.attributes.index'
|
||||
])->name('admin.catalog.attributes.update');
|
||||
|
||||
Route::get('/attributes/delete/{id}', 'Webkul\Attribute\Http\Controllers\AttributeController@destroy')->defaults('_config', [
|
||||
'view' => 'admin::catalog.attributes.delete'
|
||||
])->name('admin.catalog.attributes.delete');
|
||||
Route::get('/attributes/delete/{id}', 'Webkul\Attribute\Http\Controllers\AttributeController@destroy')->name('admin.catalog.attributes.delete');
|
||||
|
||||
|
||||
// Catalog Family Routes
|
||||
|
|
@ -222,6 +227,8 @@ Route::group(['middleware' => ['web']], function () {
|
|||
Route::put('/families/edit/{id}', 'Webkul\Attribute\Http\Controllers\AttributeFamilyController@update')->defaults('_config', [
|
||||
'redirect' => 'admin.catalog.families.index'
|
||||
])->name('admin.catalog.families.update');
|
||||
|
||||
Route::get('/families/delete/{id}', 'Webkul\Attribute\Http\Controllers\AttributeFamilyController@destroy')->name('admin.catalog.families.delete');
|
||||
});
|
||||
|
||||
|
||||
|
|
@ -291,6 +298,8 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.locales.index'
|
||||
])->name('admin.locales.store');
|
||||
|
||||
Route::get('/locales/delete/{id}', 'Webkul\Core\Http\Controllers\LocaleController@destroy')->name('admin.locales.delete');
|
||||
|
||||
|
||||
// Currency Routes
|
||||
Route::get('/currencies', 'Webkul\Core\Http\Controllers\CurrencyController@index')->defaults('_config', [
|
||||
|
|
@ -305,6 +314,8 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.currencies.index'
|
||||
])->name('admin.currencies.store');
|
||||
|
||||
Route::get('/currencies/delete/{id}', 'Webkul\Core\Http\Controllers\CurrencyController@destroy')->name('admin.currencies.delete');
|
||||
|
||||
|
||||
// Exchange Rates Routes
|
||||
Route::get('/exchange_rates', 'Webkul\Core\Http\Controllers\ExchangeRateController@index')->defaults('_config', [
|
||||
|
|
@ -327,6 +338,8 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.exchange_rates.index'
|
||||
])->name('admin.exchange_rates.update');
|
||||
|
||||
Route::get('/exchange_rates/delete/{id}', 'Webkul\Core\Http\Controllers\ExchangeRateController@destroy')->name('admin.exchange_rates.delete');
|
||||
|
||||
|
||||
// Inventory Source Routes
|
||||
Route::get('/inventory_sources', 'Webkul\Inventory\Http\Controllers\InventorySourceController@index')->defaults('_config', [
|
||||
|
|
@ -349,6 +362,8 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.inventory_sources.index'
|
||||
])->name('admin.inventory_sources.update');
|
||||
|
||||
Route::get('/inventory_sources/delete/{id}', 'Webkul\Inventory\Http\Controllers\InventorySourceController@destroy')->name('admin.inventory_sources.delete');
|
||||
|
||||
|
||||
// Channel Routes
|
||||
Route::get('/channels', 'Webkul\Core\Http\Controllers\ChannelController@index')->defaults('_config', [
|
||||
|
|
@ -371,6 +386,7 @@ Route::group(['middleware' => ['web']], function () {
|
|||
'redirect' => 'admin.channels.index'
|
||||
])->name('admin.channels.update');
|
||||
|
||||
Route::get('/channels/delete/{id}', 'Webkul\Core\Http\Controllers\ChannelController@destroy')->name('admin.channels.delete');
|
||||
|
||||
|
||||
// Admin Profile route
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ use Illuminate\Support\ServiceProvider;
|
|||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Facades\Blade;
|
||||
use Webkul\Admin\Providers\EventServiceProvider;
|
||||
use Illuminate\Contracts\Debug\ExceptionHandler;
|
||||
use Webkul\Admin\Exceptions\Handler;
|
||||
|
||||
class AdminServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
|
@ -29,6 +31,11 @@ class AdminServiceProvider extends ServiceProvider
|
|||
$this->composeView();
|
||||
|
||||
$this->app->register(EventServiceProvider::class);
|
||||
|
||||
$this->app->bind(
|
||||
ExceptionHandler::class,
|
||||
Handler::class
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -386,7 +386,11 @@ return [
|
|||
'locales' => 'Locales',
|
||||
'default-locale' => 'Default Locale',
|
||||
'currencies' => 'Currencies',
|
||||
'base-currency' => 'Base Currency'
|
||||
'base-currency' => 'Base Currency',
|
||||
'design' => 'Design',
|
||||
'theme' => 'Theme',
|
||||
'logo' => 'Logo',
|
||||
'favicon' => 'Favicon'
|
||||
],
|
||||
|
||||
'sliders' => [
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
@section('content')
|
||||
<div class="content">
|
||||
|
||||
<form method="POST" action="{{ route('admin.catalog.categories.store') }}" @submit.prevent="onSubmit">
|
||||
|
||||
<form method="POST" action="{{ route('admin.catalog.categories.store') }}" @submit.prevent="onSubmit" enctype="multipart/form-data">
|
||||
|
||||
<div class="page-header">
|
||||
<div class="page-title">
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@stop
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
<accordian :title="'{{ __($accordian['name']) }}'" :active="true">
|
||||
<div slot="body">
|
||||
|
||||
|
||||
<image-wrapper :button-label="'{{ __('admin::app.catalog.products.add-image-btn-title') }}'" input-name="images" :images='@json($product->images)'></image-wrapper>
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
@extends('admin::layouts.content')
|
||||
|
||||
@section('page_title')
|
||||
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
justify-content: start; align-items: center;">
|
||||
|
||||
<div class="error-box" style="width: 50%">
|
||||
|
||||
<div class="error-title" style="font-size: 100px;color: #5E5E5E"> {{ $code }}</div>
|
||||
|
||||
<div class="error-messgae" style="font-size: 24px;color: #5E5E5E">Page Not Found</div>
|
||||
|
||||
<div class="error-description" style="margin-top: 20px;margin-bottom: 20px;color: #242424">The Page you are looking for doesnt exist or have secrately escaped;head backm to home and make a fresh move again.</div>
|
||||
|
||||
<a href="{{ route('admin.dashboard.index') }}">GO TO HOME</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="error-graphic icon-404" style="margin-left: 10% ;"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
|
|
@ -1,13 +1,30 @@
|
|||
@extends('admin::layouts.content')
|
||||
|
||||
@section('page_title')
|
||||
{{ __('admin::app.catalog.categories.edit-title') }}
|
||||
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="content">
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
justify-content: start; align-items: center;">
|
||||
|
||||
<div class="error-box" style="width: 50%">
|
||||
|
||||
<div class="error-title" style="font-size: 100px;color: #5E5E5E"> {{ $code }}</div>
|
||||
|
||||
<div class="error-messgae" style="font-size: 24px;color: #5E5E5E">Page Not Found</div>
|
||||
|
||||
<div class="error-description" style="margin-top: 20px;margin-bottom: 20px;color: #242424">The Page you are looking for doesnt exist or have secrately escaped;head backm to home and make a fresh move again.</div>
|
||||
|
||||
<a href="{{ route('admin.dashboard.index') }}">GO TO HOME</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="error-graphic icon-404" style="margin-left: 10% ;"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
@extends('admin::layouts.content')
|
||||
|
||||
@section('page_title')
|
||||
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
justify-content: start; align-items: center;">
|
||||
|
||||
<div class="error-box" style="width: 50%">
|
||||
|
||||
<div class="error-title" style="font-size: 100px;color: #5E5E5E"> {{ $code }}</div>
|
||||
|
||||
<div class="error-messgae" style="font-size: 24px;color: #5E5E5E">Page Not Found</div>
|
||||
|
||||
<div class="error-description" style="margin-top: 20px;margin-bottom: 20px;color: #242424">The Page you are looking for doesnt exist or have secrately escaped;head backm to home and make a fresh move again.</div>
|
||||
|
||||
<a href="{{ route('admin.dashboard.index') }}">GO TO HOME</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="error-graphic icon-404" style="margin-left: 10% ;"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
|
|
@ -13,14 +13,14 @@
|
|||
@yield('head')
|
||||
|
||||
@yield('css')
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
|
||||
<flash-wrapper ref='flashes'></flash-wrapper>
|
||||
|
||||
|
||||
@include ('admin::layouts.nav-top')
|
||||
|
||||
@include ('admin::layouts.nav-left')
|
||||
|
|
@ -44,8 +44,10 @@
|
|||
@endif
|
||||
|
||||
window.serverErrors = [];
|
||||
@if (count($errors))
|
||||
window.serverErrors = @json($errors->getMessages());
|
||||
@if(isset($errors))
|
||||
@if (count($errors))
|
||||
window.serverErrors = @json($errors->getMessages());
|
||||
@endif
|
||||
@endif
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
<div class="dropdown-toggle">
|
||||
<div style="display: inline-block; vertical-align: middle;">
|
||||
<span class="name">
|
||||
{{ auth()->guard('admin')->user()->name }}
|
||||
{{-- {{ auth()->guard('admin')->user()->name }} --}}
|
||||
</span>
|
||||
|
||||
<span class="role">
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
@section('content')
|
||||
<div class="content">
|
||||
|
||||
<form method="POST" action="{{ route('admin.channels.store') }}" @submit.prevent="onSubmit">
|
||||
<form method="POST" action="{{ route('admin.channels.store') }}" @submit.prevent="onSubmit" enctype="multipart/form-data">
|
||||
<div class="page-header">
|
||||
<div class="page-title">
|
||||
<h1>{{ __('admin::app.settings.channels.add-title') }}</h1>
|
||||
|
|
@ -102,6 +102,34 @@
|
|||
</div>
|
||||
</accordian>
|
||||
|
||||
<accordian :title="'{{ __('admin::app.settings.channels.design') }}'" :active="true">
|
||||
<div slot="body">
|
||||
<div class="control-group">
|
||||
<label for="theme">{{ __('admin::app.settings.channels.theme') }}</label>
|
||||
<select class="control" id="theme" name="theme">
|
||||
@foreach(themes()->all() as $theme)
|
||||
<option value="{{ $theme->code }}" {{ old('theme') == $theme->code ? 'selected' : '' }}>
|
||||
{{ $theme->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label>{{ __('admin::app.settings.channels.logo') }}
|
||||
|
||||
<image-wrapper :button-label="'{{ __('admin::app.catalog.products.add-image-btn-title') }}'" input-name="logo" :multiple="false"></image-wrapper>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label>{{ __('admin::app.settings.channels.favicon') }}
|
||||
|
||||
<image-wrapper :button-label="'{{ __('admin::app.catalog.products.add-image-btn-title') }}'" input-name="logo" :multiple="false"></image-wrapper>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</accordian>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
@section('content')
|
||||
<div class="content">
|
||||
|
||||
<form method="POST" action="{{ route('admin.channels.update', $channel->id) }}" @submit.prevent="onSubmit">
|
||||
<form method="POST" action="{{ route('admin.channels.update', $channel->id) }}" @submit.prevent="onSubmit" enctype="multipart/form-data">
|
||||
<div class="page-header">
|
||||
<div class="page-title">
|
||||
<h1>{{ __('admin::app.settings.channels.edit-title') }}</h1>
|
||||
|
|
@ -30,7 +30,8 @@
|
|||
|
||||
<div class="control-group" :class="[errors.has('code') ? 'has-error' : '']">
|
||||
<label for="code" class="required">{{ __('admin::app.settings.channels.code') }}</label>
|
||||
<input v-validate="'required'" class="control" id="code" name="code" value="{{ old('code') ?: $channel->code }}" v-code/>
|
||||
<input type="text" v-validate="'required'" class="control" id="code" name="code" value="{{ $channel->code }}" disabled="disabled"/>
|
||||
<input type="hidden" name="code" value="{{ $channel->code }}"/>
|
||||
<span class="control-error" v-if="errors.has('code')">@{{ errors.first('code') }}</span>
|
||||
</div>
|
||||
|
||||
|
|
@ -107,6 +108,37 @@
|
|||
</div>
|
||||
</accordian>
|
||||
|
||||
<accordian :title="'{{ __('admin::app.settings.channels.design') }}'" :active="true">
|
||||
<div slot="body">
|
||||
<div class="control-group">
|
||||
<label for="theme">{{ __('admin::app.settings.channels.theme') }}</label>
|
||||
|
||||
<?php $selectedOption = old('theme') ?: $channel->theme ?>
|
||||
|
||||
<select class="control" id="theme" name="theme">
|
||||
@foreach(themes()->all() as $theme)
|
||||
<option value="{{ $theme->code }}" {{ $selectedOption == $theme->code ? 'selected' : '' }}>
|
||||
{{ $theme->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label>{{ __('admin::app.settings.channels.logo') }}
|
||||
|
||||
<image-wrapper :button-label="'{{ __('admin::app.catalog.products.add-image-btn-title') }}'" input-name="logo" :multiple="false" :images='"{{ $channel->logo_url }}"'></image-wrapper>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label>{{ __('admin::app.settings.channels.favicon') }}
|
||||
|
||||
<image-wrapper :button-label="'{{ __('admin::app.catalog.products.add-image-btn-title') }}'" input-name="favicon" :multiple="false" :images='"{{ $channel->favicon_url }}"'></image-wrapper>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</accordian>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -134,5 +134,9 @@ class CategoryController extends Controller
|
|||
public function destroy($id)
|
||||
{
|
||||
$this->category->delete($id);
|
||||
|
||||
session()->flash('success', 'Category deleted successfully.');
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
}
|
||||
|
|
@ -11,5 +11,5 @@ class Category extends TranslatableModel
|
|||
|
||||
public $translatedAttributes = ['name', 'description', 'slug', 'meta_title', 'meta_description', 'meta_keywords'];
|
||||
|
||||
protected $fillable = ['position', 'status', 'parent_id'];
|
||||
protected $fillable = ['position', 'status', 'parent_id','image'];
|
||||
}
|
||||
|
|
@ -20,6 +20,8 @@ class CreateChannelsTable extends Migration
|
|||
$table->text('description')->nullable();
|
||||
$table->string('timezone')->nullable();
|
||||
$table->string('theme')->nullable();
|
||||
$table->string('logo')->nullable();
|
||||
$table->string('favicon')->nullable();
|
||||
$table->integer('default_locale_id')->unsigned();
|
||||
$table->integer('base_currency_id')->unsigned();
|
||||
$table->foreign('default_locale_id')->references('id')->on('locales')->onDelete('cascade');
|
||||
|
|
|
|||
|
|
@ -5,10 +5,11 @@ namespace Webkul\Core\Models;
|
|||
use Illuminate\Database\Eloquent\Model;
|
||||
use Webkul\Core\Models\Locale;
|
||||
use Webkul\Core\Models\Currency;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class Channel extends Model
|
||||
{
|
||||
protected $fillable = ['code', 'name', 'description', 'default_locale_id', 'base_currency_id'];
|
||||
protected $fillable = ['code', 'name', 'description', 'default_locale_id', 'base_currency_id', 'theme'];
|
||||
|
||||
/**
|
||||
* Get the channel locales.
|
||||
|
|
@ -36,6 +37,7 @@ class Channel extends Model
|
|||
|
||||
|
||||
protected $with = ['base_currency'];
|
||||
|
||||
/**
|
||||
* Get the base currency
|
||||
*/
|
||||
|
|
@ -43,4 +45,42 @@ class Channel extends Model
|
|||
{
|
||||
return $this->belongsTo(Currency::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get logo image url.
|
||||
*/
|
||||
public function logo_url()
|
||||
{
|
||||
if(!$this->logo)
|
||||
return;
|
||||
|
||||
return Storage::url($this->logo);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get logo image url.
|
||||
*/
|
||||
public function getLogoUrlAttribute()
|
||||
{
|
||||
return $this->logo_url();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get favicon image url.
|
||||
*/
|
||||
public function favicon_url()
|
||||
{
|
||||
if(!$this->favicon)
|
||||
return;
|
||||
|
||||
return Storage::url($this->favicon);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get favicon image url.
|
||||
*/
|
||||
public function getFaviconUrlAttribute()
|
||||
{
|
||||
return $this->favicon_url();
|
||||
}
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
namespace Webkul\Core\Repositories;
|
||||
|
||||
use Webkul\Core\Eloquent\Repository;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
/**
|
||||
* Channel Reposotory
|
||||
|
|
@ -34,6 +35,10 @@ class ChannelRepository extends Repository
|
|||
|
||||
$channel->currencies()->sync($data['currencies']);
|
||||
|
||||
$this->uploadImages($data, $channel);
|
||||
|
||||
$this->uploadImages($data, $channel, 'favicon');
|
||||
|
||||
return $channel;
|
||||
}
|
||||
|
||||
|
|
@ -53,6 +58,41 @@ class ChannelRepository extends Repository
|
|||
|
||||
$channel->currencies()->sync($data['currencies']);
|
||||
|
||||
$this->uploadImages($data, $channel);
|
||||
|
||||
$this->uploadImages($data, $channel, 'favicon');
|
||||
|
||||
return $channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $data
|
||||
* @param mixed $channel
|
||||
* @return void
|
||||
*/
|
||||
public function uploadImages($data, $channel, $type = "logo")
|
||||
{
|
||||
if(isset($data[$type])) {
|
||||
foreach ($data[$type] as $imageId => $image) {
|
||||
$file = $type . '.' . $imageId;
|
||||
$dir = 'channel/' . $channel->id;
|
||||
|
||||
if(request()->hasFile($file)) {
|
||||
if($channel->{$type}) {
|
||||
Storage::delete($channel->{$type});
|
||||
}
|
||||
|
||||
$channel->{$type} = request()->file($file)->store($dir);
|
||||
$channel->save();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if($channel->{$type}) {
|
||||
Storage::delete($channel->{$type});
|
||||
}
|
||||
|
||||
$channel->{$type} = null;
|
||||
$channel->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -177,5 +177,9 @@ class ProductController extends Controller
|
|||
public function destroy($id)
|
||||
{
|
||||
$this->product->delete($id);
|
||||
|
||||
session()->flash('success', 'Product deleted successfully.');
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
}
|
||||
|
|
@ -35,6 +35,20 @@ class ShopServiceProvider extends ServiceProvider
|
|||
$this->createCustomerMenu();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$themes = $this->app->make('themes');
|
||||
|
||||
if (!$themes->current() && \Config::get('themes.default')) {
|
||||
$themes->set(\Config::get('themes.default'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind the the data to the views
|
||||
*
|
||||
|
|
@ -64,7 +78,7 @@ class ShopServiceProvider extends ServiceProvider
|
|||
|
||||
Event::listen('customer.menu.build', function ($menu) {
|
||||
$menu->add('profile', 'Profile', 'customer.profile.index', 1);
|
||||
|
||||
|
||||
$menu->add('orders', 'Orders', 'customer.orders.index', 2);
|
||||
|
||||
$menu->add('address', 'Address', 'customer.address.index', 3);
|
||||
|
|
@ -74,4 +88,4 @@ class ShopServiceProvider extends ServiceProvider
|
|||
$menu->add('wishlist', 'Wishlist', 'customer.wishlist.index', 5);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
<a :href="url+'/categories/'+this.item['translations'][0].slug">{{ this.item['translations'][0].name }} <i class="icon dropdown-right-icon"
|
||||
v-if="haveChildren && item.parent_id != null"></i></a>
|
||||
|
||||
<i :class="[show ? 'icon arrow-down-icon mt-15' : 'icon dropdown-right-icon mt-15']"
|
||||
<i :class="[show ? 'icon icon-arrow-down mt-15' : 'icon dropdown-right-icon mt-15']"
|
||||
v-if="haveChildren" @click="showOrHide"></i>
|
||||
|
||||
<ul v-if="haveChildren && show">
|
||||
|
|
|
|||
|
|
@ -426,6 +426,7 @@ section.slider-block {
|
|||
}
|
||||
ul.right-responsive {
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
|
||||
li {
|
||||
margin-right : 5px;
|
||||
|
|
@ -666,6 +667,10 @@ section.slider-block {
|
|||
border-bottom: 1px solid $border-color;
|
||||
}
|
||||
|
||||
.nav li ul {
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
.nav li:first-child {
|
||||
border-top: 1px solid $border-color;
|
||||
}
|
||||
|
|
@ -674,6 +679,7 @@ section.slider-block {
|
|||
float:none;
|
||||
height: 45px;
|
||||
display: none;
|
||||
border: none;
|
||||
|
||||
img {
|
||||
margin-right:6px;
|
||||
|
|
@ -888,23 +894,6 @@ section.product-detail {
|
|||
height: 650px;
|
||||
max-width: 604px;
|
||||
|
||||
.loader {
|
||||
border: 16px solid $border-color;
|
||||
border-top: 16px solid $brand-color;
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
animation: spin 2s linear infinite;
|
||||
margin-left: 20%;
|
||||
position: absolute;
|
||||
margin-top: 200px;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
@ -2061,4 +2050,4 @@ section.review {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,12 +15,7 @@
|
|||
background-image:URL('../images/icon-menu-close.svg');
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.icon-menu-close-adj {
|
||||
background-image:URL('../images/cross-icon-adj.svg');
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-left:auto;
|
||||
}
|
||||
|
||||
.grid-view-icon {
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ body {
|
|||
}
|
||||
|
||||
.sort-filter {
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
|
@ -196,21 +197,6 @@ body {
|
|||
|
||||
}
|
||||
|
||||
// @media only screen and (max-width: 660px) {
|
||||
// .product-grid-3 {
|
||||
// grid-template-columns: 48.5% 48.5%;
|
||||
// grid-column-gap: 20px;
|
||||
// }
|
||||
// }
|
||||
|
||||
// @media only screen and (max-width: 480px) {
|
||||
// .product-grid-3 {
|
||||
// grid-template-columns: 47.5% 47.5%;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
//layered filter wrapper styles
|
||||
.layered-filter-wrapper {
|
||||
width: 25%;
|
||||
|
|
@ -299,7 +285,6 @@ body {
|
|||
}
|
||||
|
||||
.responsive-layred-filter {
|
||||
@extend .layered-filter-wrapper;
|
||||
width: 100%;
|
||||
float: none;
|
||||
padding-right: 0px;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
<div class="account-layout">
|
||||
|
||||
<div class="account-head">
|
||||
<span class="back-icon"><a href="{{ route('customer.account.index') }}"><i class="icon icon-menu-back"></i></a></span>
|
||||
<span class="account-heading">{{ __('shop::app.customer.account.address.index.title') }}</span>
|
||||
|
||||
@if(!$address->isEmpty())
|
||||
|
|
@ -21,6 +22,8 @@
|
|||
{{ __('shop::app.customer.account.address.index.edit') }}
|
||||
</a>
|
||||
</span>
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
<div class="horizontal-rule"></div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
<div class="account-layout">
|
||||
<div class="account-head mb-15">
|
||||
{{-- <span class="back-icon"><a href="{{ route('customer.account.index') }}"><i class="icon icon-menu-back"></i></a></span> --}}
|
||||
<div class="account-heading">{{ __('shop::app.customer.account.address.create.title') }}</div>
|
||||
</div>
|
||||
<form method="post" action="{{ route('customer.address.create') }}" @submit.prevent="onSubmit">
|
||||
|
|
|
|||
|
|
@ -5,3 +5,29 @@
|
|||
<h1>Account Index Page</h1>
|
||||
</div>
|
||||
@endsection
|
||||
@push('scripts')
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var sideMenuTitle = document.getElementById("responsive-side-menu");
|
||||
var downIcon = document.getElementById("down-icon");
|
||||
var accountSideMenu = document.getElementsByClassName("account-side-menu");
|
||||
|
||||
sideMenuTitle.addEventListener("click", function(){
|
||||
if(downIcon.className == 'icon icon-arrow-down right'){
|
||||
for(let i=0 ; i < accountSideMenu.length ; i++){
|
||||
accountSideMenu[i].style.display="block";
|
||||
}
|
||||
|
||||
downIcon.classList.remove("icon","icon-arrow-down","right");
|
||||
downIcon.classList.add("icon","icon-arrow-up","right");
|
||||
}else{
|
||||
for(let i=0 ; i < accountSideMenu.length ; i++){
|
||||
accountSideMenu[i].style.display="none";
|
||||
}
|
||||
|
||||
downIcon.classList.remove("icon","icon-arrow-up","right");
|
||||
downIcon.classList.add("icon","icon-arrow-down","right");
|
||||
}
|
||||
});
|
||||
});
|
||||
@endpush
|
||||
|
|
|
|||
|
|
@ -52,6 +52,12 @@
|
|||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
@if (!$orders->count())
|
||||
<tr>
|
||||
<td class="empty" colspan="4">{{ __('admin::app.common.no-result-found') }}</td>
|
||||
<tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
<div class="responsive-side-menu" id="responsive-side-menu">
|
||||
Menu
|
||||
<i class="icon icon-arrow-down right" id="down-icon"></i>
|
||||
</div>
|
||||
|
||||
<ul class="account-side-menu">
|
||||
@foreach($menu->items as $menuItem)
|
||||
|
||||
<li class="menu-item {{ $menu->getActive($menuItem) }}">
|
||||
<a href="{{ $menuItem['url'] }}">
|
||||
{{ $menuItem['name'] }}
|
||||
|
|
@ -8,41 +12,5 @@
|
|||
|
||||
<i class="icon angle-right-icon"></i>
|
||||
</li>
|
||||
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var sideMenuTitle = document.getElementById("side-menu-title");
|
||||
var downIcon = document.getElementById("down-icon");
|
||||
var accountSideMenu = document.getElementsByClassName("account-side-menu");
|
||||
|
||||
sideMenuTitle.addEventListener("click", function(){
|
||||
if(downIcon.className == 'icon icon-arrow-down right'){
|
||||
for(let i=0 ; i < accountSideMenu.length ; i++){
|
||||
accountSideMenu[i].style.display="block";
|
||||
}
|
||||
downIcon.classList.remove("icon","icon-arrow-down","right");
|
||||
downIcon.classList.add("icon","icon-arrow-up","right");
|
||||
}else{
|
||||
for(let i=0 ; i < accountSideMenu.length ; i++){
|
||||
accountSideMenu[i].style.display="none";
|
||||
}
|
||||
downIcon.classList.remove("icon","icon-arrow-up","right");
|
||||
downIcon.classList.add("icon","icon-arrow-down","right");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@endpush
|
||||
|
||||
|
||||
</ul>
|
||||
|
|
@ -12,7 +12,11 @@
|
|||
<div class="account-layout">
|
||||
|
||||
<div class="account-head mb-10">
|
||||
<div class="account-heading">{{ __('shop::app.customer.account.profile.edit-profile.title') }}</div>
|
||||
<span class="back-icon"><a href="{{ route('customer.account.index') }}"><i class="icon icon-menu-back"></i></a></span>
|
||||
|
||||
<span class="account-heading">{{ __('shop::app.customer.account.profile.edit-profile.title') }}</span>
|
||||
|
||||
<span></span>
|
||||
</div>
|
||||
|
||||
<form method="post" action="{{ route('customer.profile.edit') }}">
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<div class="account-head">
|
||||
|
||||
{{-- <span class="back-icon"><a href="{{ route('customer.account.index') }}"><i class="icon icon-menu-back"></i></a></span> --}}
|
||||
<span class="back-icon"><a href="{{ route('customer.account.index') }}"><i class="icon icon-menu-back"></i></a></span>
|
||||
|
||||
<span class="account-heading">{{ __('shop::app.customer.account.profile.index.title') }}</span>
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@
|
|||
<div class="account-layout">
|
||||
|
||||
<div class="account-head">
|
||||
<span class="back-icon"><a href="{{ route('customer.account.index') }}"><i class="icon icon-menu-back"></i></a></span>
|
||||
<span class="account-heading">{{ __('shop::app.customer.account.review.index.title') }}</span>
|
||||
<span></span>
|
||||
<div class="horizontal-rule"></div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
<div class="account-head mb-15">
|
||||
<span class="account-heading">{{ __('shop::app.wishlist.title') }}</span>
|
||||
|
||||
<span class="account-heading">{{ __('shop::app.wishlist.title') }}</span>
|
||||
@if(count($items))
|
||||
<div class="account-action">
|
||||
<a href="" style="margin-right: 15px;">{{ __('shop::app.wishlist.deleteall') }}</a>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
@extends('shop::layouts.master')
|
||||
|
||||
@section('content-wrapper')
|
||||
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
justify-content: start; align-items: center;">
|
||||
|
||||
<div class="error-box" style="width: 50%">
|
||||
|
||||
<div class="error-title" style="font-size: 100px;color: #5E5E5E"> {{ $code }} </div>
|
||||
|
||||
<div class="error-messgae" style="font-size: 24px;color: #5E5E5E">Page Not Found</div>
|
||||
|
||||
<div class="error-description" style="margin-top: 20px;margin-bottom: 20px;color: #242424">The Page you are looking for doesnt exist or have secrately escaped;head backm to home and make a fresh move again.</div>
|
||||
|
||||
<a href="{{ route('shop.home.index') }}">GO TO HOME</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="error-graphic icon-404" style="margin-left: 10% ;"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
@extends('shop::layouts.master')
|
||||
|
||||
@section('content-wrapper')
|
||||
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
justify-content: start; align-items: center;">
|
||||
|
||||
<div class="error-box" style="width: 50%">
|
||||
|
||||
<div class="error-title" style="font-size: 100px;color: #5E5E5E"> {{ $code }}</div>
|
||||
|
||||
<div class="error-messgae" style="font-size: 24px;color: #5E5E5E">Page Not Found</div>
|
||||
|
||||
<div class="error-description" style="margin-top: 20px;margin-bottom: 20px;color: #242424">The Page you are looking for doesnt exist or have secrately escaped;head backm to home and make a fresh move again.</div>
|
||||
|
||||
<a href="{{ route('shop.home.index') }}">GO TO HOME</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="error-graphic icon-404" style="margin-left: 10% ;"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
@extends('shop::layouts.master')
|
||||
|
||||
@section('content-wrapper')
|
||||
|
||||
<div class="error-container" style="width: 100%; display: flex; justify-content: center;">
|
||||
|
||||
<div class="wrapper" style="display: flex; height: 60vh; width: 100%;
|
||||
justify-content: start; align-items: center;">
|
||||
|
||||
<div class="error-box" style="width: 50%">
|
||||
|
||||
<div class="error-title" style="font-size: 100px;color: #5E5E5E"> {{ $code }} </div>
|
||||
|
||||
<div class="error-messgae" style="font-size: 24px;color: #5E5E5E">Page Not Found</div>
|
||||
|
||||
<div class="error-description" style="margin-top: 20px;margin-bottom: 20px;color: #242424">The Page you are looking for doesnt exist or have secrately escaped;head backm to home and make a fresh move again.</div>
|
||||
|
||||
<a href="{{ route('shop.home.index') }}">GO TO HOME</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="error-graphic icon-404" style="margin-left: 10% ;"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
|
@ -244,17 +244,17 @@
|
|||
@include('shop::layouts.header.nav-menu.navmenu')
|
||||
</div>
|
||||
|
||||
<div class="search-responsive">
|
||||
<div class="search-responsive mt-10">
|
||||
<div class="search-content">
|
||||
<i class="icon icon-search mt-10"></i>
|
||||
<input class="search mt-5">
|
||||
<i class="icon icon-menu-back right mt-10"></i>
|
||||
</div>
|
||||
|
||||
<div class="search-content">
|
||||
{{-- <div class="search-content">
|
||||
<i class="icon icon-search mt-10"></i>
|
||||
<span class="suggestion mt-15">Designer sarees</span>
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
|
||||
<div class="responsive-nav">
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@
|
|||
@include('shop::layouts.footer.footer')
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.flashMessages = [];
|
||||
|
||||
|
|
@ -56,9 +55,10 @@
|
|||
@endif
|
||||
|
||||
window.serverErrors = [];
|
||||
|
||||
@if (count($errors))
|
||||
window.serverErrors = @json($errors->getMessages());
|
||||
@if(isset($errors))
|
||||
@if (count($errors))
|
||||
window.serverErrors = @json($errors->getMessages());
|
||||
@endif
|
||||
@endif
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -74,5 +74,27 @@
|
|||
</section>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
|
||||
document.onreadystatechange = function () {
|
||||
var state = document.readyState
|
||||
var galleryTemplate = document.getElementById('product-gallery-template');
|
||||
var addTOButton = document.getElementsByClassName('add-to-buttons')[0];
|
||||
|
||||
if(galleryTemplate){
|
||||
if (state == 'interactive') {
|
||||
galleryTemplate.style.display="none";
|
||||
} else {
|
||||
document.getElementById('loader').style.display="none";
|
||||
addTOButton.style.display="flex";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<div class="product-image-group">
|
||||
|
||||
<div class="loader" id="loader">
|
||||
<div class="cp-spinner cp-round" id="loader">
|
||||
</div>
|
||||
|
||||
<product-gallery></product-gallery>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
<?php
|
||||
|
||||
use Webkul\Theme\Themes;
|
||||
|
||||
if (! function_exists('themes')) {
|
||||
function themes()
|
||||
{
|
||||
return new Themes;
|
||||
return app()->make('themes');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,11 +37,5 @@ class ThemeServiceProvider extends ServiceProvider
|
|||
null
|
||||
);
|
||||
});
|
||||
|
||||
$themes = $this->app->make('themes');
|
||||
|
||||
if (!$themes->current() && \Config::get('themes.default')) {
|
||||
$themes->set(\Config::get('themes.default'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="254px" height="236px" viewBox="0 0 254 236" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 50 (54983) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>404-image</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="Desktop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.5">
|
||||
<g id="404-page" transform="translate(-960.000000, -288.000000)">
|
||||
<g id="404-image" transform="translate(961.000000, 289.000000)">
|
||||
<polyline id="Path-3" stroke="#242424" stroke-width="3" points="0.626953125 0.990234375 34.3359375 26.4658203 34.6796875 73.1640625 34.3359375 186.773437 160.960938 215.992187 210.71875 130.375 34.3359375 72.71875"></polyline>
|
||||
<g id="Group" transform="translate(46.000000, 190.000000)" fill="#FFFFFF" stroke="#242424" stroke-width="3">
|
||||
<circle id="Oval" cx="22.5" cy="22.5" r="21"></circle>
|
||||
<circle id="Oval" cx="23" cy="23" r="5.5"></circle>
|
||||
</g>
|
||||
<g id="Group" transform="translate(208.000000, 163.000000)" fill="#FFFFFF" stroke="#242424" stroke-width="3">
|
||||
<circle id="Oval" cx="22.5" cy="22.5" r="21"></circle>
|
||||
<circle id="Oval" cx="23" cy="23" r="5.5"></circle>
|
||||
</g>
|
||||
<path d="M178,205 L182,205 L182,208 L178,208 L178,205 Z M185,205 L206,205 L206,208 L185,208 L185,205 Z" id="Combined-Shape" fill="#242424" transform="translate(192.000000, 206.500000) rotate(-23.000000) translate(-192.000000, -206.500000) "></path>
|
||||
<path d="M172.473165,218.350993 L176.473165,218.350993 L176.473165,221.350993 L172.473165,221.350993 L172.473165,218.350993 Z M179.473165,218.350993 L200.473165,218.350993 L200.473165,221.350993 L179.473165,221.350993 L179.473165,218.350993 Z" id="Combined-Shape" fill="#242424" transform="translate(186.473165, 219.850993) rotate(-23.000000) translate(-186.473165, -219.850993) "></path>
|
||||
<path d="M198.610065,126.237911 L222.219028,78.9333292 L163.963322,59.4411726 L147.719875,109.950161 L198.610065,126.237911 Z" id="Path-4" stroke="#242424" stroke-width="3"></path>
|
||||
<polyline id="Path-5" stroke="#242424" stroke-width="3" points="131.557617 105.489258 134.746094 71.9423828 157.437808 79.0096878"></polyline>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
|
|
@ -11,7 +11,7 @@
|
|||
></image-item>
|
||||
</div>
|
||||
|
||||
<label class="btn btn-lg btn-primary" style="display: inline-block" @click="createFileType">{{ buttonLabel }}</label>
|
||||
<label class="btn btn-lg btn-primary" style="display: inline-block; width: auto" @click="createFileType">{{ buttonLabel }}</label>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -37,9 +37,15 @@
|
|||
},
|
||||
|
||||
images: {
|
||||
type: Array,
|
||||
type: Array|String,
|
||||
required: false,
|
||||
default: () => ([])
|
||||
},
|
||||
|
||||
multiple: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -53,14 +59,31 @@
|
|||
created () {
|
||||
var this_this = this;
|
||||
|
||||
this.images.forEach(function(image) {
|
||||
this_this.items.push(image)
|
||||
this_this.imageCount++;
|
||||
});
|
||||
if(this.multiple) {
|
||||
this.images.forEach(function(image) {
|
||||
this_this.items.push(image)
|
||||
|
||||
this_this.imageCount++;
|
||||
});
|
||||
} else {
|
||||
if(this.images && this.images != '') {
|
||||
this.items.push({'id': 'image_' + this.imageCount, 'url': this.images})
|
||||
|
||||
this.imageCount++;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
createFileType () {
|
||||
var this_this = this;
|
||||
|
||||
if(!this.multiple) {
|
||||
this.items.forEach(function(image) {
|
||||
this_this.removeImage(image)
|
||||
});
|
||||
}
|
||||
|
||||
this.imageCount++;
|
||||
|
||||
this.items.push({'id': 'image_' + this.imageCount});
|
||||
|
|
|
|||
|
|
@ -817,4 +817,54 @@ h2 {
|
|||
background-image: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//css for loader
|
||||
.cp-spinner {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
margin-left: 18.5%;
|
||||
margin-top: 15%;
|
||||
}
|
||||
|
||||
.cp-round:before {
|
||||
border-radius: 50%;
|
||||
content: " ";
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
border-top: solid 6px #bababa;
|
||||
border-right: solid 6px #bababa;
|
||||
border-bottom: solid 6px #bababa;
|
||||
border-left: solid 6px #bababa;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.cp-round:after {
|
||||
border-radius: 50%;
|
||||
content: " ";
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
border-top: solid 6px $brand-color;
|
||||
border-right: solid 6px transparent;
|
||||
border-bottom: solid 6px transparent;
|
||||
border-left: solid 6px transparent;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
animation: spin 1s ease-in-out infinite;
|
||||
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
|
@ -256,3 +256,9 @@
|
|||
background-image: url("../images/Expand-Light-On.svg");
|
||||
}
|
||||
}
|
||||
|
||||
.icon-404 {
|
||||
background-image: url("../images/404-image.svg");
|
||||
width: 255px;
|
||||
height: 255px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,12 +15,16 @@
|
|||
background-image: URL("../images/icon-menu-close.svg");
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
<<<<<<< HEAD
|
||||
margin-left: auto;
|
||||
=======
|
||||
}
|
||||
|
||||
.icon-menu-close-adj {
|
||||
background-image: URL("../images/cross-icon-adj.svg");
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
>>>>>>> 0bd7d8353108a3306bfa60977477735224974f5d
|
||||
}
|
||||
|
||||
.grid-view-icon {
|
||||
|
|
@ -479,7 +483,7 @@ body {
|
|||
}
|
||||
|
||||
@media only screen and (max-width: 840px) {
|
||||
.layered-filter-wrapper, .responsive-layred-filter {
|
||||
.layered-filter-wrapper {
|
||||
display: none;
|
||||
}
|
||||
.main .category-block {
|
||||
|
|
@ -501,6 +505,7 @@ body {
|
|||
display: none;
|
||||
}
|
||||
.main .category-block .top-toolbar .pager .view-mode .sort-filter {
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
|
@ -519,38 +524,38 @@ body {
|
|||
}
|
||||
}
|
||||
|
||||
.layered-filter-wrapper, .responsive-layred-filter {
|
||||
.layered-filter-wrapper {
|
||||
width: 25%;
|
||||
float: left;
|
||||
padding-right: 20px;
|
||||
min-height: 1px;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-title, .responsive-layred-filter .filter-title {
|
||||
.layered-filter-wrapper .filter-title {
|
||||
border-bottom: 1px solid #E8E8E8;
|
||||
color: #242424;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item, .responsive-layred-filter .filter-attributes .filter-attributes-item {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item {
|
||||
border-bottom: 1px solid #E8E8E8;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-title {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title {
|
||||
padding: 10px 40px 0 10px;
|
||||
color: #5E5E5E;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title .remove-filter-link, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-title .remove-filter-link {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title .remove-filter-link {
|
||||
font-weight: 400;
|
||||
color: #0031F0;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title .icon, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-title .icon {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-title .icon {
|
||||
background-image: url("../images/arrow-down.svg") !important;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
|
|
@ -559,45 +564,45 @@ body {
|
|||
top: 14px;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content {
|
||||
padding: 10px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none none;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item {
|
||||
padding: 8px 0;
|
||||
color: #5E5E5E;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox .checkbox-view, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox .checkbox-view {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox .checkbox-view {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
background-image: url("../images/checkbox.svg");
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox input:checked + .checkbox-view, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox input:checked + .checkbox-view {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content ol.items li.item .checkbox input:checked + .checkbox-view {
|
||||
background-image: url("../images/checkbox-checked.svg");
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content .price-range-wrapper, .responsive-layred-filter .filter-attributes .filter-attributes-item .filter-attributes-content .price-range-wrapper {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item .filter-attributes-content .price-range-wrapper {
|
||||
margin-top: 21px;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item.active .filter-attributes-content, .responsive-layred-filter .filter-attributes .filter-attributes-item.active .filter-attributes-content {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item.active .filter-attributes-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item.active .filter-attributes-title .icon, .responsive-layred-filter .filter-attributes .filter-attributes-item.active .filter-attributes-title .icon {
|
||||
.layered-filter-wrapper .filter-attributes .filter-attributes-item.active .filter-attributes-title .icon {
|
||||
background-image: url("../images//arrow-up.svg") !important;
|
||||
}
|
||||
|
||||
|
|
@ -1110,6 +1115,7 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
|
|||
|
||||
.header .header-top ul.right-responsive {
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.header .header-top ul.right-responsive li {
|
||||
|
|
@ -1341,6 +1347,9 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
|
|||
.responsive-nav .nav > li {
|
||||
border-bottom: 1px solid #E8E8E8;
|
||||
}
|
||||
.responsive-nav .nav li ul {
|
||||
padding-left: 30px;
|
||||
}
|
||||
.responsive-nav .nav li:first-child {
|
||||
border-top: 1px solid #E8E8E8;
|
||||
}
|
||||
|
|
@ -1348,6 +1357,7 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
|
|||
float: none;
|
||||
height: 45px;
|
||||
display: none;
|
||||
border: none;
|
||||
}
|
||||
.responsive-nav .nav > li:last-child img {
|
||||
margin-right: 6px;
|
||||
|
|
@ -1563,41 +1573,6 @@ section.product-detail div.layouter form div.product-image-group {
|
|||
max-width: 604px;
|
||||
}
|
||||
|
||||
section.product-detail div.layouter form div.product-image-group .loader {
|
||||
border: 16px solid #E8E8E8;
|
||||
border-top: 16px solid #0031F0;
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
-webkit-animation: spin 2s linear infinite;
|
||||
animation: spin 2s linear infinite;
|
||||
margin-left: 20%;
|
||||
position: absolute;
|
||||
margin-top: 200px;
|
||||
}
|
||||
|
||||
@-webkit-keyframes spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
section.product-detail div.layouter form div.product-image-group div {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
|
|
@ -2642,8 +2617,13 @@ section.review .review-layouter .review-form .review-detail .rating-calculate .p
|
|||
color: #0031F0;
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
.account-content .responsive-side-menu {
|
||||
display: none;
|
||||
=======
|
||||
.account-content .account-side-menu li.active .icon {
|
||||
display: inline-block;
|
||||
>>>>>>> 0bd7d8353108a3306bfa60977477735224974f5d
|
||||
}
|
||||
|
||||
.account-content .account-layout {
|
||||
|
|
@ -2651,8 +2631,83 @@ section.review .review-layouter .review-form .review-detail .rating-calculate .p
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
.account-content .account-layout .back-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 770px) {
|
||||
.account-content {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
}
|
||||
.account-content .account-side-menu {
|
||||
display: none;
|
||||
width: 100%;
|
||||
border: none;
|
||||
}
|
||||
.account-content .account-side-menu li {
|
||||
margin-left: 0%;
|
||||
width: 100%;
|
||||
}
|
||||
.account-content .account-side-menu li a {
|
||||
color: #242424;
|
||||
}
|
||||
.account-content .responsive-side-menu {
|
||||
cursor: pointer;
|
||||
padding-top: 13px;
|
||||
display: block;
|
||||
height: 46px;
|
||||
border-bottom: 1px solid #E8E8E8;
|
||||
border-top: 1px solid #E8E8E8;
|
||||
}
|
||||
.account-content .responsive-side-menu .right {
|
||||
float: right;
|
||||
}
|
||||
.account-content .account-layout {
|
||||
margin-left: 0%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.account-content .account-layout .account-head {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #E8E8E8;
|
||||
border-top: 1px solid #E8E8E8;
|
||||
height: 46px;
|
||||
}
|
||||
.account-content .account-layout .account-head .back-icon {
|
||||
display: block;
|
||||
}
|
||||
.account-content .account-layout .account-head span {
|
||||
margin-top: 12px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.account-content .account-layout .account-head .horizontal-rule {
|
||||
display: none;
|
||||
}
|
||||
.account-content .account-layout .account-table-content {
|
||||
margin-top: 2%;
|
||||
}
|
||||
.account-content .account-layout .account-table-content table tbody tr {
|
||||
display: grid;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.account-content .account-items-list, .account-content .edit-form {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.account-content .control-group .control {
|
||||
width: 100%;
|
||||
}
|
||||
=======
|
||||
.account-content .account-layout .account-head {
|
||||
margin-bottom: 20px;
|
||||
>>>>>>> 0bd7d8353108a3306bfa60977477735224974f5d
|
||||
}
|
||||
|
||||
.account-table-content {
|
||||
|
|
|
|||
|
|
@ -30905,7 +30905,7 @@ var render = function() {
|
|||
? _c("i", {
|
||||
class: [
|
||||
_vm.show
|
||||
? "icon arrow-down-icon mt-15"
|
||||
? "icon icon-arrow-down mt-15"
|
||||
: "icon dropdown-right-icon mt-15"
|
||||
],
|
||||
on: { click: _vm.showOrHide }
|
||||
|
|
|
|||
Loading…
Reference in New Issue