merged with conflicted assets, recompile storefront

This commit is contained in:
prashant-webkul 2018-10-25 13:51:03 +05:30
commit 1b83b23e53
54 changed files with 446 additions and 264 deletions

View File

@ -53,7 +53,7 @@ return [
], ],
'customers' => [ 'customers' => [
'provider' => 'customers', 'provider' => 'customers',
'table' => 'customers_password_resets', 'table' => 'customer_password_resets',
'expire' => 60, 'expire' => 60,
], ],
], ],

View File

@ -54,7 +54,7 @@ return [
], ],
'customers' => [ 'customers' => [
'provider' => 'customers', 'provider' => 'customers',
'table' => 'customers_password_resets', 'table' => 'customer_password_resets',
'expire' => 60, 'expire' => 60,
], ],
], ],

View File

@ -79,7 +79,7 @@ class CustomerDataGrid
'name' => 'email', 'name' => 'email',
'alias' => 'Email', 'alias' => 'Email',
'type' => 'string', 'type' => 'string',
'label' => 'E-Mail', 'label' => 'Email',
'sortable' => false, 'sortable' => false,
], ],
[ [
@ -127,7 +127,7 @@ class CustomerDataGrid
[ [
'column' => 'email', 'column' => 'email',
'type' => 'string', 'type' => 'string',
'label' => 'E-Mail', 'label' => 'Email',
], ],
], ],

View File

@ -84,7 +84,7 @@ class CustomerGroupDataGrid
'sortable' => true, 'sortable' => true,
], ],
[ [
'name' => 'cg.group_name', 'name' => 'cg.name',
'alias' => 'Name', 'alias' => 'Name',
'type' => 'string', 'type' => 'string',
'label' => 'Name', 'label' => 'Name',
@ -107,7 +107,7 @@ class CustomerGroupDataGrid
//don't use aliasing in case of filters //don't use aliasing in case of filters
'filterable' => [ 'filterable' => [
[ [
'column' => 'cg.group_name', 'column' => 'cg.name',
'alias' => 'Name', 'alias' => 'Name',
'type' => 'string', 'type' => 'string',
'label' => 'Name' 'label' => 'Name'

View File

@ -101,7 +101,7 @@ class UserDataGrid
'name' => 'u.email', 'name' => 'u.email',
'alias' => 'Email', 'alias' => 'Email',
'type' => 'string', 'type' => 'string',
'label' => 'E-Mail', 'label' => 'Email',
'sortable' => true, 'sortable' => true,
], ],
[ [
@ -134,7 +134,7 @@ class UserDataGrid
[ [
'column' => 'u.email', 'column' => 'u.email',
'type' => 'string', 'type' => 'string',
'label' => 'E-Mail' 'label' => 'Email'
], [ ], [
'column' => 'u.name', 'column' => 'u.name',
'type' => 'string', 'type' => 'string',

View File

@ -6,6 +6,8 @@ use Illuminate\Database\Seeder;
use Webkul\Attribute\Database\Seeders\DatabaseSeeder as AttributeSeeder; use Webkul\Attribute\Database\Seeders\DatabaseSeeder as AttributeSeeder;
use Webkul\Core\Database\Seeders\DatabaseSeeder as CoreSeeder; use Webkul\Core\Database\Seeders\DatabaseSeeder as CoreSeeder;
use Webkul\User\Database\Seeders\DatabaseSeeder as UserSeeder; use Webkul\User\Database\Seeders\DatabaseSeeder as UserSeeder;
use Webkul\Customer\Database\Seeders\DatabaseSeeder as CustomerSeeder;
use Webkul\Inventory\Database\Seeders\DatabaseSeeder as InventorySeeder;
class DatabaseSeeder extends Seeder class DatabaseSeeder extends Seeder
{ {
@ -16,8 +18,10 @@ class DatabaseSeeder extends Seeder
*/ */
public function run() public function run()
{ {
$this->call(AttributeSeeder::class);
$this->call(CoreSeeder::class); $this->call(CoreSeeder::class);
$this->call(InventorySeeder::class);
$this->call(AttributeSeeder::class);
$this->call(UserSeeder::class); $this->call(UserSeeder::class);
$this->call(CustomerSeeder::class);
} }
} }

View File

@ -6,10 +6,10 @@ use Exception;
use Illuminate\Auth\AuthenticationException; use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
class Handler extends ExceptionHandler class Handler extends ExceptionHandler
{ {
/** /**
* Render an exception into an HTTP response. * Render an exception into an HTTP response.
* *
@ -19,22 +19,20 @@ class Handler extends ExceptionHandler
*/ */
public function render($request, Exception $exception) public function render($request, Exception $exception)
{ {
if ($exception instanceof HttpException) { if ($exception instanceof HttpException) {
$statusCode = $exception->getStatusCode(); $statusCode = $exception->getCode();
if(strpos($_SERVER['REQUEST_URI'], 'admin') !== false){ if(strpos($_SERVER['REQUEST_URI'], 'admin') !== false) {
return response(view('admin::errors.'.$statusCode, [ return response(view('admin::errors.' . $statusCode, [
'msg' => $exception->getMessage(), 'msg' => $exception->getMessage(),
'code' => $statusCode 'code' => $statusCode
]), $statusCode); ]), $statusCode);
}else { } else {
return response(view('shop::errors.'.$statusCode, [ return response(view('shop::errors.' . $statusCode, [
'msg' => $exception->getMessage(), 'msg' => $exception->getMessage(),
'code' => $statusCode 'code' => $statusCode
]), $statusCode); ]), $statusCode);
} }
} }
return parent::render($request, $exception); return parent::render($request, $exception);

View File

@ -70,7 +70,7 @@ class CustomerGroupController extends Controller
public function store() public function store()
{ {
$this->validate(request(), [ $this->validate(request(), [
'group_name' => 'string|required', 'name' => 'string|required',
]); ]);
$this->customerGroup->create(request()->all()); $this->customerGroup->create(request()->all());
@ -103,7 +103,7 @@ class CustomerGroupController extends Controller
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
$this->validate(request(), [ $this->validate(request(), [
'group_name' => 'string|required', 'name' => 'string|required',
]); ]);
$this->customerGroup->update(request()->all(),$id); $this->customerGroup->update(request()->all(),$id);

View File

@ -37,7 +37,7 @@ class DataGridController extends Controller
], [ ], [
'column' => 'u.email', 'column' => 'u.email',
'type' => 'string', 'type' => 'string',
'label' => 'Admin E-Mail', 'label' => 'Admin Email',
], [ ], [
'column' => 'u.name', 'column' => 'u.name',
'type' => 'string', 'type' => 'string',
@ -76,7 +76,7 @@ class DataGridController extends Controller
[ [
'name' => 'u.email', 'name' => 'u.email',
'type' => 'string', 'type' => 'string',
'label' => 'Admin E-Mail', 'label' => 'Admin Email',
'sortable' => true, 'sortable' => true,
'filterable' => true 'filterable' => true
], ],

View File

@ -21,7 +21,6 @@ Route::group(['middleware' => ['web']], function () {
Route::post('/forget-password', 'Webkul\User\Http\Controllers\ForgetPasswordController@store')->name('admin.forget-password.store'); Route::post('/forget-password', 'Webkul\User\Http\Controllers\ForgetPasswordController@store')->name('admin.forget-password.store');
// Reset Password Routes // Reset Password Routes
Route::get('/reset-password/{token}', 'Webkul\User\Http\Controllers\ResetPasswordController@create')->defaults('_config', [ Route::get('/reset-password/{token}', 'Webkul\User\Http\Controllers\ResetPasswordController@create')->defaults('_config', [
'view' => 'admin::users.reset-password.create' 'view' => 'admin::users.reset-password.create'

View File

@ -458,48 +458,6 @@ return [
'comment' => 'Comment' 'comment' => 'Comment'
] ]
], ],
'mail' => [
'order' => [
'subject' => 'New Order Confirmation',
'heading' => 'Order Confirmation!',
'dear' => 'Dear :customer_name',
'greeting' => 'Thanks for your Order :order_id placed on :created_at',
'summary' => 'Summary of Order',
'shipping-address' => 'Shipping Address',
'billing-address' => 'Billing Address',
'contact' => 'Contact',
'shipping' => 'Shipping',
'payment' => 'Payment',
'price' => 'Price',
'quantity' => 'Quantity',
'subtotal' => 'Subtotal',
'shipping-handling' => 'Shipping & Handling',
'tax' => 'Tax',
'grand-total' => 'Grand Total',
'final-summary' => 'Thanks for showing your intrest in our store. we will send you track number once it shiped.',
'help' => 'If you need any kind of help please contact us at :support_email',
'thanks' => 'Thanks!'
],
'invoice' => [
'heading' => 'Your Invoice #:invoice_id for Order #:order_id',
'subject' => 'Invoice for your order #:order_id',
'summary' => 'Summary of Invoice',
],
'shipment' => [
'heading' => 'Your Shipment #:shipment_id for Order #:order_id',
'subject' => 'Shipment for your order #:order_id',
'summary' => 'Summary of Shipment',
'carrier' => 'Carrier',
'tracking-number' => 'Tracking Number'
],
'forget-password' => [
'dear' => 'Dear :name',
'info' => 'You are receiving this email because we received a password reset request for your account.',
'reset-password' => 'Reset Password',
'final-summary' => 'If you did not request a password reset, no further action is required.',
'thanks' => 'Thanks!'
]
],
'error' => [ 'error' => [
'go-to-home' => 'GO TO HOME', 'go-to-home' => 'GO TO HOME',

View File

@ -71,7 +71,7 @@
<label for="customerGroup" >{{ __('admin::app.customers.customers.customer_group') }}</label> <label for="customerGroup" >{{ __('admin::app.customers.customers.customer_group') }}</label>
<select class="control" name="customer_group_id"> <select class="control" name="customer_group_id">
@foreach ($customerGroup as $group) @foreach ($customerGroup as $group)
<option value="{{ $group->id }}"> {{ $group->group_name}} </> <option value="{{ $group->id }}"> {{ $group->name}} </>
@endforeach @endforeach
</select> </select>
</div> </div>

View File

@ -82,7 +82,7 @@
<select class="control" name="customer_group_id"> <select class="control" name="customer_group_id">
@foreach($customerGroup as $group) @foreach($customerGroup as $group)
<option value="{{ $group->id }}" {{ $selectedCustomerOption == $group->id ? 'selected' : '' }}> <option value="{{ $group->id }}" {{ $selectedCustomerOption == $group->id ? 'selected' : '' }}>
{{ $group->group_name}} {{ $group->name}}
</option> </option>
@endforeach @endforeach
</select> </select>

View File

@ -27,12 +27,12 @@
<div class="form-container"> <div class="form-container">
@csrf() @csrf()
<div class="control-group" :class="[errors.has('group_name') ? 'has-error' : '']"> <div class="control-group" :class="[errors.has('name') ? 'has-error' : '']">
<label for="group_name" class="required"> <label for="name" class="required">
{{ __('admin::app.customers.groups.name') }} {{ __('admin::app.customers.groups.name') }}
</label> </label>
<input type="text" class="control" name="group_name" v-validate="'required'" value="{{ old('group_name') }}"> <input type="text" class="control" name="name" v-validate="'required'" value="{{ old('name') }}">
<span class="control-error" v-if="errors.has('group_name')">@{{ errors.first('group_name') }}</span> <span class="control-error" v-if="errors.has('name')">@{{ errors.first('name') }}</span>
</div> </div>
<div class="control-group"> <div class="control-group">

View File

@ -29,12 +29,12 @@
<input name="_method" type="hidden" value="PUT"> <input name="_method" type="hidden" value="PUT">
<div class="control-group" :class="[errors.has('group_name') ? 'has-error' : '']"> <div class="control-group" :class="[errors.has('name') ? 'has-error' : '']">
<label for="group_name" class="required"> <label for="name" class="required">
{{ __('admin::app.customers.groups.name') }} {{ __('admin::app.customers.groups.name') }}
</label> </label>
<input type="text" class="control" name="group_name" v-validate="'required'" value="{{ $group->group_name }}"> <input type="text" class="control" name="name" v-validate="'required'" value="{{ $group->name }}">
<span class="control-error" v-if="errors.has('group_name')">@{{ errors.first('group_name') }}</span> <span class="control-error" v-if="errors.has('name')">@{{ errors.first('name') }}</span>
</div> </div>
<div class="control-group"> <div class="control-group">

View File

@ -236,8 +236,6 @@ class Cart {
'base_total' => $parentPrice * ($prevQty + $newQty) 'base_total' => $parentPrice * ($prevQty + $newQty)
]); ]);
$this->collectTotals();
session()->flash('success', trans('shop::app.checkout.cart.quantity.success')); session()->flash('success', trans('shop::app.checkout.cart.quantity.success'));
return true; return true;

View File

@ -20,6 +20,7 @@ class CreateChannelsTable extends Migration
$table->text('description')->nullable(); $table->text('description')->nullable();
$table->string('timezone')->nullable(); $table->string('timezone')->nullable();
$table->string('theme')->nullable(); $table->string('theme')->nullable();
$table->string('hostname')->nullable();
$table->string('logo')->nullable(); $table->string('logo')->nullable();
$table->string('favicon')->nullable(); $table->string('favicon')->nullable();
$table->integer('default_locale_id')->unsigned(); $table->integer('default_locale_id')->unsigned();
@ -57,4 +58,4 @@ class CreateChannelsTable extends Migration
Schema::dropIfExists('channel_currencies'); Schema::dropIfExists('channel_currencies');
} }
} }

View File

@ -0,0 +1,32 @@
<?php
namespace Webkul\Core\Database\Seeders;
use Illuminate\Database\Seeder;
use DB;
class ChannelTableSeeder extends Seeder
{
public function run()
{
DB::table('channels')->delete();
DB::table('channels')->insert([
'id' => 1,
'code' => 'default',
'name' => 'Default',
'default_locale_id' => 1,
'base_currency_id' => 1
]);
DB::table('channel_currencies')->insert([
'channel_id' => 1,
'currency_id' => 1,
]);
DB::table('channel_locales')->insert([
'channel_id' => 1,
'locale_id' => 1,
]);
}
}

View File

@ -12,9 +12,9 @@ class CurrencyTableSeeder extends Seeder
DB::table('currencies')->delete(); DB::table('currencies')->delete();
DB::table('currencies')->insert([ DB::table('currencies')->insert([
'id' => 1,
'code' => 'USD', 'code' => 'USD',
'name' => 'US Dollar', 'name' => 'US Dollar'
'symbol' => '$',
]); ]);
} }
} }

View File

@ -14,8 +14,9 @@ class DatabaseSeeder extends Seeder
public function run() public function run()
{ {
$this->call(LocalesTableSeeder::class); $this->call(LocalesTableSeeder::class);
$this->call(LocalesTableSeeder::class); $this->call(CurrencyTableSeeder::class);
$this->call(CountriesTableSeeder::class); $this->call(CountriesTableSeeder::class);
$this->call(StatesTableSeeder::class); $this->call(StatesTableSeeder::class);
$this->call(ChannelTableSeeder::class);
} }
} }

View File

@ -12,9 +12,11 @@ class LocalesTableSeeder extends Seeder
DB::table('locales')->delete(); DB::table('locales')->delete();
DB::table('locales')->insert([ DB::table('locales')->insert([
'id' => 1,
'code' => 'en', 'code' => 'en',
'name' => 'English', 'name' => 'English',
], [ ], [
'id' => 2,
'code' => 'fr', 'code' => 'fr',
'name' => 'French', 'name' => 'French',
]); ]);

View File

@ -72,7 +72,7 @@ class LocaleController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
$this->validate(request(), [ $this->validate(request(), [
'code' => 'required|unique:locales,code', 'code' => ['required', 'unique:locales,code', new \Webkul\Core\Contracts\Validations\Code],
'name' => 'required' 'name' => 'required'
]); ]);

View File

@ -0,0 +1,24 @@
<?php
namespace Webkul\Customer\Database\Seeders;
use Illuminate\Database\Seeder;
use DB;
class CustomerGroupTableSeeder extends Seeder
{
public function run()
{
DB::table('customer_groups')->delete();
DB::table('customer_groups')->insert([
'id' => 1,
'name' => 'General',
'is_user_defined' => 0,
], [
'id' => 2,
'name' => 'Wholesale',
'is_user_defined' => 0,
]);
}
}

View File

@ -0,0 +1,18 @@
<?php
namespace Webkul\Customer\Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(CustomerGroupTableSeeder::class);
}
}

View File

@ -15,8 +15,8 @@ class CreateCustomerGroupsTable extends Migration
{ {
Schema::create('customer_groups', function (Blueprint $table) { Schema::create('customer_groups', function (Blueprint $table) {
$table->increments('id'); $table->increments('id');
$table->string('group_name'); $table->string('name');
$table->boolean('is_user_defined')->default(true); $table->boolean('is_user_defined')->default(1);
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
class CustomersPasswordResets extends Migration class CustomerPasswordResets extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
@ -13,7 +13,7 @@ class CustomersPasswordResets extends Migration
*/ */
public function up() public function up()
{ {
Schema::create('customers_password_resets', function (Blueprint $table) { Schema::create('customer_password_resets', function (Blueprint $table) {
$table->string('email')->index(); $table->string('email')->index();
$table->string('token'); $table->string('token');
$table->timestamp('created_at')->nullable(); $table->timestamp('created_at')->nullable();
@ -27,6 +27,6 @@ class CustomersPasswordResets extends Migration
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('customers_password_resets'); Schema::dropIfExists('customer_password_resets');
} }
} }

View File

@ -54,7 +54,7 @@ class RegistrationController extends Controller
$request->validate([ $request->validate([
'first_name' => 'string|required', 'first_name' => 'string|required',
'last_name' => 'string|required', 'last_name' => 'string|required',
'email' => 'email|required', 'email' => 'email|required|unique:customers,email',
'password' => 'confirmed|min:6|required', 'password' => 'confirmed|min:6|required',
'agreement' => 'required' 'agreement' => 'required'
]); ]);

View File

@ -6,10 +6,7 @@ use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Foundation\Auth\User as Authenticatable;
use Webkul\Customer\Models\CustomerGroup; use Webkul\Customer\Models\CustomerGroup;
use Webkul\Sales\Models\Order; use Webkul\Sales\Models\Order;
use Webkul\Customer\Notifications\CustomerResetPassword;
// use Webkul\User\Notifications\AdminResetPassword;
// use Webkul\User\Notifications\AdminResetPassword;
class Customer extends Authenticatable class Customer extends Authenticatable
@ -38,4 +35,15 @@ class Customer extends Authenticatable
{ {
return $this->belongsTo(CustomerGroup::class); return $this->belongsTo(CustomerGroup::class);
} }
/**
* Send the password reset notification.
*
* @param string $token
* @return void
*/
public function sendPasswordResetNotification($token)
{
$this->notify(new CustomerResetPassword($token));
}
} }

View File

@ -7,5 +7,5 @@ class CustomerGroup extends Model
{ {
protected $table = 'customer_groups'; protected $table = 'customer_groups';
protected $fillable = ['group_name', 'is_user_defined']; protected $fillable = ['name', 'is_user_defined'];
} }

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Webkul\User\Notifications; namespace Webkul\Customer\Notifications;
use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Auth\Notifications\ResetPassword; use Illuminate\Auth\Notifications\ResetPassword;
@ -21,7 +21,7 @@ class CustomerResetPassword extends ResetPassword
} }
return (new MailMessage) return (new MailMessage)
->view('shop::emails.customer.forget-password')->with([ ->view('shop::emails.customer.forget-password', [
'user_name' => $notifiable->name, 'user_name' => $notifiable->name,
'token' => $this->token 'token' => $this->token
]); ]);

View File

@ -26,11 +26,11 @@ class CreateInventorySourcesTable extends Migration
$table->string('state')->nullable(); $table->string('state')->nullable();
$table->string('city')->nullable(); $table->string('city')->nullable();
$table->string('street')->nullable(); $table->string('street')->nullable();
$table->string('postcode'); $table->string('postcode')->nullable();
$table->integer('priority')->default(0); $table->integer('priority')->default(0);
$table->decimal('latitude', 10, 5)->nullable(); $table->decimal('latitude', 10, 5)->nullable();
$table->decimal('longitude', 10, 5)->nullable(); $table->decimal('longitude', 10, 5)->nullable();
$table->boolean('status')->default(0); $table->boolean('status')->default(1);
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -0,0 +1,18 @@
<?php
namespace Webkul\Inventory\Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(InventoryTableSeeder::class);
}
}

View File

@ -0,0 +1,21 @@
<?php
namespace Webkul\Inventory\Database\Seeders;
use Illuminate\Database\Seeder;
use DB;
class InventoryTableSeeder extends Seeder
{
public function run()
{
DB::table('inventory_sources')->delete();
DB::table('inventory_sources')->insert([
'id' => 1,
'code' => 'default',
'name' => 'Default',
'status' => 1,
]);
}
}

View File

@ -69,6 +69,7 @@ class InventorySourceController extends Controller
public function store() public function store()
{ {
$this->validate(request(), [ $this->validate(request(), [
'code' => ['required', 'unique:inventory_sources,code', new \Webkul\Core\Contracts\Validations\Code],
'name' => 'required' 'name' => 'required'
]); ]);
@ -102,6 +103,7 @@ class InventorySourceController extends Controller
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
$this->validate(request(), [ $this->validate(request(), [
'code' => ['required', 'unique:inventory_sources,code,' . $id, new \Webkul\Core\Contracts\Validations\Code],
'name' => 'required', 'name' => 'required',
]); ]);

View File

@ -0,0 +1,56 @@
<?php
namespace Webkul\Product\Contracts\Criteria;
use Prettus\Repository\Contracts\CriteriaInterface;
use Prettus\Repository\Contracts\RepositoryInterface;
use Webkul\Attribute\Repositories\AttributeRepository;
use Webkul\Product\Helpers\AbstractProduct;
/**
* Class MyCriteria.
*
* @package namespace App\Criteria;
*/
class ActiveProductCriteria extends AbstractProduct implements CriteriaInterface
{
/**
* @var AttributeRepository
*/
protected $attribute;
/**
* @param Webkul\Attribute\Repositories\AttributeRepository $attribute
* @return void
*/
public function __construct(AttributeRepository $attribute)
{
$this->attribute = $attribute;
}
/**
* Apply criteria in query repository
*
* @param string $model
* @param RepositoryInterface $repository
*
* @return mixed
*/
public function apply($model, RepositoryInterface $repository)
{
foreach(['status', 'visible_individually'] as $code) {
$attribute = $this->attribute->findOneByField('code', $code);
$alias = 'filter_' . $attribute->code;
$model = $model->leftJoin('product_attribute_values as ' . $alias, 'products.id', '=', $alias . '.product_id');
$model = $this->applyChannelLocaleFilter($attribute, $model, $alias);
$model->where($alias . '.boolean_value', 1)
->where($alias . '.attribute_id', $attribute->id);
}
return $model;
}
}

View File

@ -11,6 +11,7 @@ use Webkul\Product\Repositories\ProductInventoryRepository;
use Webkul\Product\Repositories\ProductImageRepository; use Webkul\Product\Repositories\ProductImageRepository;
use Webkul\Product\Models\ProductAttributeValue; use Webkul\Product\Models\ProductAttributeValue;
use Webkul\Product\Contracts\Criteria\SortCriteria; use Webkul\Product\Contracts\Criteria\SortCriteria;
use Webkul\Product\Contracts\Criteria\ActiveProductCriteria;
use Webkul\Product\Contracts\Criteria\AttributeToSelectCriteria; use Webkul\Product\Contracts\Criteria\AttributeToSelectCriteria;
use Webkul\Product\Contracts\Criteria\FilterByAttributesCriteria; use Webkul\Product\Contracts\Criteria\FilterByAttributesCriteria;
use Webkul\Product\Contracts\Criteria\FilterByCategoryCriteria; use Webkul\Product\Contracts\Criteria\FilterByCategoryCriteria;
@ -383,6 +384,7 @@ class ProductRepository extends Repository
*/ */
public function findAllByCategory($categoryId = null) public function findAllByCategory($categoryId = null)
{ {
$this->pushCriteria(app(ActiveProductCriteria::class));
$this->pushCriteria(app(SortCriteria::class)); $this->pushCriteria(app(SortCriteria::class));
$this->pushCriteria(app(FilterByAttributesCriteria::class)); $this->pushCriteria(app(FilterByAttributesCriteria::class));
$this->pushCriteria(new FilterByCategoryCriteria($categoryId)); $this->pushCriteria(new FilterByCategoryCriteria($categoryId));
@ -419,9 +421,12 @@ class ProductRepository extends Repository
], ['product_id']); ], ['product_id']);
if($attributeValue && $attributeValue->product_id) { if($attributeValue && $attributeValue->product_id) {
$this->pushCriteria(app(ActiveProductCriteria::class));
$this->pushCriteria(app(AttributeToSelectCriteria::class)->addAttribueToSelect($columns)); $this->pushCriteria(app(AttributeToSelectCriteria::class)->addAttribueToSelect($columns));
return $this->find($attributeValue->product_id); $product = $this->findOrFail($attributeValue->product_id);
return $product;
} }
throw (new ModelNotFoundException)->setModel( throw (new ModelNotFoundException)->setModel(
@ -436,6 +441,7 @@ class ProductRepository extends Repository
*/ */
public function getNewProducts() public function getNewProducts()
{ {
$this->pushCriteria(app(ActiveProductCriteria::class));
$this->pushCriteria(app(NewProductsCriteria::class)); $this->pushCriteria(app(NewProductsCriteria::class));
$this->pushCriteria(app(AttributeToSelectCriteria::class)); $this->pushCriteria(app(AttributeToSelectCriteria::class));
@ -453,6 +459,7 @@ class ProductRepository extends Repository
*/ */
public function getFeaturedProducts() public function getFeaturedProducts()
{ {
$this->pushCriteria(app(ActiveProductCriteria::class));
$this->pushCriteria(app(FeaturedProductsCriteria::class)); $this->pushCriteria(app(FeaturedProductsCriteria::class));
$this->pushCriteria(app(AttributeToSelectCriteria::class)); $this->pushCriteria(app(AttributeToSelectCriteria::class));

View File

@ -66,24 +66,24 @@ Route::group(['middleware' => ['web', 'theme', 'locale', 'currency']], function
'redirect' => 'customer.reviews.index' 'redirect' => 'customer.reviews.index'
])->name('shop.reviews.store'); ])->name('shop.reviews.store');
// forgot Password Routes
Route::get('/forgot-password', 'Webkul\Customer\Http\Controllers\ForgotPasswordController@create')->defaults('_config', [
'view' => 'shop::customers.signup.forgot-password'
])->name('customer.forgot-password.create');
Route::post('/forgot-password', 'Webkul\Customer\Http\Controllers\ForgotPasswordController@store')->name('customer.forgot-password.store');
//Reset Password create
Route::get('/reset-password/{token}', 'Webkul\Customer\Http\Controllers\ResetPasswordController@create')->defaults('_config', [
'view' => 'shop::customers.signup.reset-password'
])->name('customer.reset-password.create');
Route::post('/reset-password', 'Webkul\Customer\Http\Controllers\ResetPasswordController@store')->defaults('_config', [
'redirect' => 'customer.session.index'
])->name('customer.reset-password.store');
//customer routes starts here //customer routes starts here
Route::prefix('customer')->group(function () { Route::prefix('customer')->group(function () {
// forgot Password Routes
Route::get('/forgot-password', 'Webkul\Customer\Http\Controllers\ForgotPasswordController@create')->defaults('_config', [
'view' => 'shop::customers.signup.forgot-password'
])->name('customer.forgot-password.create');
Route::post('/forgot-password', 'Webkul\Customer\Http\Controllers\ForgotPasswordController@store')->name('customer.forgot-password.store');
//Reset Password create
Route::get('/reset-password/{token}', 'Webkul\Customer\Http\Controllers\ResetPasswordController@create')->defaults('_config', [
'view' => 'shop::customers.signup.reset-password'
])->name('customer.reset-password.create');
Route::post('/reset-password', 'Webkul\Customer\Http\Controllers\ResetPasswordController@store')->defaults('_config', [
'redirect' => 'customer.session.index'
])->name('customer.reset-password.store');
// Login Routes // Login Routes
Route::get('login', 'Webkul\Customer\Http\Controllers\SessionController@show')->defaults('_config', [ Route::get('login', 'Webkul\Customer\Http\Controllers\SessionController@show')->defaults('_config', [
@ -91,7 +91,7 @@ Route::group(['middleware' => ['web', 'theme', 'locale', 'currency']], function
])->name('customer.session.index'); ])->name('customer.session.index');
Route::post('login', 'Webkul\Customer\Http\Controllers\SessionController@create')->defaults('_config', [ Route::post('login', 'Webkul\Customer\Http\Controllers\SessionController@create')->defaults('_config', [
'redirect' => 'customer.account.index' 'redirect' => 'customer.profile.index'
])->name('customer.session.create'); ])->name('customer.session.create');
// Registration Routes // Registration Routes
@ -120,22 +120,6 @@ Route::group(['middleware' => ['web', 'theme', 'locale', 'currency']], function
Route::get('wishlist/moveall', 'Webkul\Customer\Http\Controllers\WishlistController@moveAll')->name('customer.wishlist.moveall'); Route::get('wishlist/moveall', 'Webkul\Customer\Http\Controllers\WishlistController@moveAll')->name('customer.wishlist.moveall');
// Forget Password Routes
Route::get('/forget-password', 'Webkul\Customer\Http\Controllers\ForgetPasswordController@create')->defaults('_config', [
'view' => 'shop::customers.signup.forget-password'
])->name('customer.forget-password.create');
Route::post('/forget-password', 'Webkul\Customer\Http\Controllers\ForgetPasswordController@store')->name('customer.forget-password.store');
//Reset Password create
Route::get('/reset-password/{token}', 'Webkul\Customer\Http\Controllers\ResetPasswordController@create')->defaults('_config', [
'view' => 'shop::customers.signup.reset-password'
])->name('password.reset');
Route::post('/reset-password', 'Webkul\Customer\Http\Controllers\ResetPasswordController@store')->defaults('_config', [
'redirect' => 'customer.session.index'
])->name('customer.reset-password.store');
//customer account //customer account
Route::prefix('account')->group(function () { Route::prefix('account')->group(function () {

View File

@ -2137,17 +2137,12 @@ section.review {
flex-direction: column; flex-direction: column;
max-width: 530px; max-width: 530px;
min-width: 380px; min-width: 380px;
min-height: 345px; padding: 25px;
padding-left: 25px;
padding-right: 25px;
.login-text { .login-text {
font-size: 24px; font-size: 24px;
font-weight: bold; font-weight: 600;
color: $font-color; margin-bottom: 30px;
margin-top: 5%;
margin-bottom: 3%;
} }
.control-group { .control-group {
@ -2164,17 +2159,14 @@ section.review {
margin-bottom: 5%; margin-bottom: 5%;
} }
.signup-confirm {
.signup-confirm {
margin-bottom: 5%; margin-bottom: 5%;
} }
.btn-primary { .btn-primary {
width: 100%; width: 100%;
text-transform: uppercase; text-transform: uppercase;
border-radius: 0px;
height: 45px;
margin-bottom: 4%;
} }
} }
} }

View File

@ -45,13 +45,13 @@ return [
'login-text' => [ 'login-text' => [
'no_account' => 'Don\'t have account', 'no_account' => 'Don\'t have account',
'title' => 'Sign In', 'title' => 'Sign Up',
], ],
'login-form' => [ 'login-form' => [
'page-title' => 'Customer - Login', 'page-title' => 'Customer - Login',
'title' => 'Sign In', 'title' => 'Sign In',
'email' => 'E-Mail', 'email' => 'Email',
'password' => 'Password', 'password' => 'Password',
'forgot_pass' => 'Forgot Password?', 'forgot_pass' => 'Forgot Password?',
'button_title' => 'Sign In', 'button_title' => 'Sign In',
@ -61,11 +61,20 @@ return [
'forgot-password' => [ 'forgot-password' => [
'title' => 'Recover Password', 'title' => 'Recover Password',
'email' => 'E-Mail', 'email' => 'Email',
'submit' => 'Submit', 'submit' => 'Submit',
'page_title' => 'Customer - Forgot Password Form' 'page_title' => 'Customer - Forgot Password Form'
], ],
'reset-password' => [
'title' => 'Reset Password',
'email' => 'Registered Email',
'password' => 'Password',
'confirm-password' => 'Confirm Password',
'back-link-title' => 'Back to Sign In',
'submit-btn-title' => 'Reset Password'
],
'account' => [ 'account' => [
'dashboard' => 'Customer - Edit Profile', 'dashboard' => 'Customer - Edit Profile',
@ -81,7 +90,7 @@ return [
'gender' => 'Gender', 'gender' => 'Gender',
'dob' => 'Date Of Birth', 'dob' => 'Date Of Birth',
'phone' => 'Phone', 'phone' => 'Phone',
'email' => 'E-Mail', 'email' => 'Email',
'opassword' => 'Old Password', 'opassword' => 'Old Password',
'password' => 'Password', 'password' => 'Password',
'cpassword' => 'Confirm Password', 'cpassword' => 'Confirm Password',
@ -301,5 +310,48 @@ return [
'order-id-info' => 'Your order id is #:order_id', 'order-id-info' => 'Your order id is #:order_id',
'info' => 'We will email you, your order details and tracking information.' 'info' => 'We will email you, your order details and tracking information.'
] ]
] ],
'mail' => [
'order' => [
'subject' => 'New Order Confirmation',
'heading' => 'Order Confirmation!',
'dear' => 'Dear :customer_name',
'greeting' => 'Thanks for your Order :order_id placed on :created_at',
'summary' => 'Summary of Order',
'shipping-address' => 'Shipping Address',
'billing-address' => 'Billing Address',
'contact' => 'Contact',
'shipping' => 'Shipping',
'payment' => 'Payment',
'price' => 'Price',
'quantity' => 'Quantity',
'subtotal' => 'Subtotal',
'shipping-handling' => 'Shipping & Handling',
'tax' => 'Tax',
'grand-total' => 'Grand Total',
'final-summary' => 'Thanks for showing your intrest in our store. we will send you track number once it shiped.',
'help' => 'If you need any kind of help please contact us at :support_email',
'thanks' => 'Thanks!'
],
'invoice' => [
'heading' => 'Your Invoice #:invoice_id for Order #:order_id',
'subject' => 'Invoice for your order #:order_id',
'summary' => 'Summary of Invoice',
],
'shipment' => [
'heading' => 'Your Shipment #:shipment_id for Order #:order_id',
'subject' => 'Shipment for your order #:order_id',
'summary' => 'Summary of Shipment',
'carrier' => 'Carrier',
'tracking-number' => 'Tracking Number'
],
'forget-password' => [
'dear' => 'Dear :name',
'info' => 'You are receiving this email because we received a password reset request for your account.',
'reset-password' => 'Reset Password',
'final-summary' => 'If you did not request a password reset, no further action is required.',
'thanks' => 'Thanks!'
]
],
]; ];

View File

@ -1,7 +1,9 @@
@extends('shop::layouts.master') @extends('shop::layouts.master')
@section('content-wrapper') @section('content-wrapper')
<div class="account-content"> <div class="account-content">
@include('shop::customers.account.partials.sidemenu') @include('shop::customers.account.partials.sidemenu')
<h1>Account Index Page</h1> <h1>Account Index Page</h1>
</div> </div>
@endsection @endsection

View File

@ -1,7 +1,9 @@
@extends('shop::layouts.master') @extends('shop::layouts.master')
@section('page_title') @section('page_title')
{{ __('shop::app.order.page-title') }} {{ __('shop::app.customer.account.profile.index.title') }}
@endsection @endsection
@section('content-wrapper') @section('content-wrapper')
<div class="account-content"> <div class="account-content">

View File

@ -1,13 +1,15 @@
@extends('shop::layouts.master') @extends('shop::layouts.master')
@section('page_title') @section('page_title')
{{ __('shop::app.customer.login-form.page-title') }} {{ __('shop::app.customer.login-form.page-title') }}
@endsection @endsection
@section('content-wrapper') @section('content-wrapper')
<div class="auth-content"> <div class="auth-content">
<div class="sign-up-text"> <div class="sign-up-text">
{{ __('shop::app.customer.login-text.no_account') }} - <a href="{{ route('customer.register.index') }}">{{ __('shop::app.customer.login-form.title') }}</a> {{ __('shop::app.customer.login-text.no_account') }} - <a href="{{ route('customer.register.index') }}">{{ __('shop::app.customer.login-text.title') }}</a>
</div> </div>

View File

@ -1,7 +1,20 @@
@extends('shop::layouts.master') @extends('shop::layouts.master')
@section('page_title') @section('page_title')
{{ __('shop::app.customer.forgot-password.page_title') }} {{ __('shop::app.customer.forgot-password.page_title') }}
@endsection @stop
@section('css')
<style>
.button-group {
margin-bottom: 25px;
}
.primary-back-icon {
vertical-align: middle;
}
</style>
@stop
@section('content-wrapper') @section('content-wrapper')
<div class="auth-content"> <div class="auth-content">
@ -20,7 +33,16 @@
<span class="control-error" v-if="errors.has('email')">@{{ errors.first('email') }}</span> <span class="control-error" v-if="errors.has('email')">@{{ errors.first('email') }}</span>
</div> </div>
<input class="btn btn-primary btn-lg" type="submit" value="{{ __('shop::app.customer.forgot-password.submit') }}"> <div class="button-group">
<input class="btn btn-primary btn-lg" type="submit" value="{{ __('shop::app.customer.forgot-password.submit') }}">
</div>
<div class="control-group" style="margin-bottom: 0px;">
<a href="{{ route('customer.session.index') }}">
<i class="icon primary-back-icon"></i>
Back to Sign In
</a>
</div>
</div> </div>
</form> </form>

View File

@ -1,5 +1,9 @@
@extends('shop::layouts.master') @extends('shop::layouts.master')
@section('page_title')
{{ __('shop::app.customer.reset-password.title') }}
@endsection
@section('content-wrapper') @section('content-wrapper')
<div class="auth-content"> <div class="auth-content">
@ -10,29 +14,29 @@
<div class="login-form"> <div class="login-form">
<div class="login-text">{{ __('shop::app.customer.password-reset-form.title') }}</div> <div class="login-text">{{ __('shop::app.customer.reset-password.title') }}</div>
<input type="hidden" name="token" value="{{ $token }}"> <input type="hidden" name="token" value="{{ $token }}">
<div class="control-group" :class="[errors.has('email') ? 'has-error' : '']"> <div class="control-group" :class="[errors.has('email') ? 'has-error' : '']">
<label for="email">{{ __('shop::app.customer.password-reset-form.email') }}</label> <label for="email">{{ __('shop::app.customer.reset-password.email') }}</label>
<input type="text" v-validate="'required|email'" class="control" id="email" name="email" value="{{ old('email') }}"/> <input type="text" v-validate="'required|email'" class="control" id="email" name="email" value="{{ old('email') }}"/>
<span class="control-error" v-if="errors.has('email')">@{{ errors.first('email') }}</span> <span class="control-error" v-if="errors.has('email')">@{{ errors.first('email') }}</span>
</div> </div>
<div class="control-group" :class="[errors.has('password') ? 'has-error' : '']"> <div class="control-group" :class="[errors.has('password') ? 'has-error' : '']">
<label for="password">{{ __('shop::app.customer.password-reset-form.password') }}</label> <label for="password">{{ __('shop::app.customer.reset-password.password') }}</label>
<input type="password" class="control" name="password" v-validate="'required|min:6'" ref="password"> <input type="password" class="control" name="password" v-validate="'required|min:6'" ref="password">
<span class="control-error" v-if="errors.has('password')">@{{ errors.first('password') }}</span> <span class="control-error" v-if="errors.has('password')">@{{ errors.first('password') }}</span>
</div> </div>
<div class="control-group" :class="[errors.has('confirm_password') ? 'has-error' : '']"> <div class="control-group" :class="[errors.has('confirm_password') ? 'has-error' : '']">
<label for="confirm_password">{{ __('shop::app.customer.password-reset-form.confirm_pass') }}</label> <label for="confirm_password">{{ __('shop::app.customer.reset-password.confirm-password') }}</label>
<input type="password" class="control" name="password_confirmation" v-validate="'required|min:6|confirmed:password'"> <input type="password" class="control" name="password_confirmation" v-validate="'required|min:6|confirmed:password'">
<span class="control-error" v-if="errors.has('confirm_password')">@{{ errors.first('confirm_password') }}</span> <span class="control-error" v-if="errors.has('confirm_password')">@{{ errors.first('confirm_password') }}</span>
</div> </div>
<input class="btn btn-primary btn-lg" type="submit" value="{{ __('shop::app.customer.password-reset-form.button_title') }}"> <input class="btn btn-primary btn-lg" type="submit" value="{{ __('shop::app.customer.reset-password.submit-btn-title') }}">
</div> </div>
</form> </form>

View File

@ -1,4 +1,4 @@
@component('admin::emails.layouts.master') @component('shop::emails.layouts.master')
<div style="text-align: center;"> <div style="text-align: center;">
<a href="{{ config('app.url') }}"> <a href="{{ config('app.url') }}">
<img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}"> <img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}">
@ -8,25 +8,25 @@
<div style="padding: 30px;"> <div style="padding: 30px;">
<div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;"> <div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;">
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.forget-password.dear', ['name' => $user_name]) }}, {{ __('shop::app.mail.forget-password.dear', ['name' => $user_name]) }},
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.forget-password.info') }} {{ __('shop::app.mail.forget-password.info') }}
</p> </p>
<p style="text-align: center;padding: 20px 0;"> <p style="text-align: center;padding: 20px 0;">
<a href="{{ route('admin.reset-password.create', $token) }}" style="padding: 10px 20px;background: #0041FF;color: #ffffff;text-transform: uppercase;text-decoration: none; font-size: 16px"> <a href="{{ route('admin.reset-password.create', $token) }}" style="padding: 10px 20px;background: #0041FF;color: #ffffff;text-transform: uppercase;text-decoration: none; font-size: 16px">
{{ __('admin::app.mail.forget-password.reset-password') }} {{ __('shop::app.mail.forget-password.reset-password') }}
</a> </a>
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.forget-password.final-summary') }} {{ __('shop::app.mail.forget-password.final-summary') }}
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.forget-password.thanks') }} {{ __('shop::app.mail.forget-password.thanks') }}
</p> </p>
</div> </div>

View File

@ -1,4 +1,4 @@
@component('admin::emails.layouts.master') @component('shop::emails.layouts.master')
<div style="text-align: center;"> <div style="text-align: center;">
<a href="{{ config('app.url') }}"> <a href="{{ config('app.url') }}">
<img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}"> <img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}">
@ -8,25 +8,25 @@
<div style="padding: 30px;"> <div style="padding: 30px;">
<div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;"> <div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;">
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.forget-password.dear', ['name' => $user_name]) }}, {{ __('shop::app.mail.forget-password.dear', ['name' => $user_name]) }},
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.forget-password.info') }} {{ __('shop::app.mail.forget-password.info') }}
</p> </p>
<p style="text-align: center;padding: 20px 0;"> <p style="text-align: center;padding: 20px 0;">
<a href="{{ route('customer.reset-password.create', $token) }}" style="padding: 10px 20px;background: #0041FF;color: #ffffff;text-transform: uppercase;text-decoration: none; font-size: 16px"> <a href="{{ route('customer.reset-password.create', $token) }}" style="padding: 10px 20px;background: #0041FF;color: #ffffff;text-transform: uppercase;text-decoration: none; font-size: 16px">
{{ __('admin::app.mail.forget-password.reset-password') }} {{ __('shop::app.mail.forget-password.reset-password') }}
</a> </a>
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.forget-password.final-summary') }} {{ __('shop::app.mail.forget-password.final-summary') }}
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.forget-password.thanks') }} {{ __('shop::app.mail.forget-password.thanks') }}
</p> </p>
</div> </div>

View File

@ -1,4 +1,4 @@
@component('admin::emails.layouts.master') @component('shop::emails.layouts.master')
<div style="text-align: center;"> <div style="text-align: center;">
<a href="{{ config('app.url') }}"> <a href="{{ config('app.url') }}">
<img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}"> <img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}">
@ -10,15 +10,15 @@
<div style="padding: 30px;"> <div style="padding: 30px;">
<div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;"> <div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;">
<span style="font-weight: bold;"> <span style="font-weight: bold;">
{{ __('admin::app.mail.invoice.heading', ['order_id' => $order->id, 'invoice_id' => $invoice->id]) }} {{ __('shop::app.mail.invoice.heading', ['order_id' => $order->id, 'invoice_id' => $invoice->id]) }}
</span> <br> </span> <br>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.order.dear', ['customer_name' => $order->customer_full_name]) }}, {{ __('shop::app.mail.order.dear', ['customer_name' => $order->customer_full_name]) }},
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{!! __('admin::app.mail.order.greeting', [ {!! __('shop::app.mail.order.greeting', [
'order_id' => '<a href="' . route('customer.orders.view', $order->id) . '" style="color: #0041FF; font-weight: bold;">#' . $order->id . '</a>', 'order_id' => '<a href="' . route('customer.orders.view', $order->id) . '" style="color: #0041FF; font-weight: bold;">#' . $order->id . '</a>',
'created_at' => $order->created_at 'created_at' => $order->created_at
]) ])
@ -27,13 +27,13 @@
</div> </div>
<div style="font-weight: bold;font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 20px !important;"> <div style="font-weight: bold;font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 20px !important;">
{{ __('admin::app.mail.invoice.summary') }} {{ __('shop::app.mail.invoice.summary') }}
</div> </div>
<div style="display: flex;flex-direction: row;margin-top: 20px;justify-content: space-between;margin-bottom: 40px;"> <div style="display: flex;flex-direction: row;margin-top: 20px;justify-content: space-between;margin-bottom: 40px;">
<div style="line-height: 25px;"> <div style="line-height: 25px;">
<div style="font-weight: bold;font-size: 16px;color: #242424;"> <div style="font-weight: bold;font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.shipping-address') }} {{ __('shop::app.mail.order.shipping-address') }}
</div> </div>
<div> <div>
@ -51,11 +51,11 @@
<div>---</div> <div>---</div>
<div style="margin-bottom: 40px;"> <div style="margin-bottom: 40px;">
{{ __('admin::app.mail.order.contact') }} : {{ $order->shipping_address->phone }} {{ __('shop::app.mail.order.contact') }} : {{ $order->shipping_address->phone }}
</div> </div>
<div style="font-size: 16px;color: #242424;"> <div style="font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.shipping') }} {{ __('shop::app.mail.order.shipping') }}
</div> </div>
<div style="font-weight: bold;font-size: 16px;color: #242424;"> <div style="font-weight: bold;font-size: 16px;color: #242424;">
@ -65,7 +65,7 @@
<div style="line-height: 25px;"> <div style="line-height: 25px;">
<div style="font-weight: bold;font-size: 16px;color: #242424;"> <div style="font-weight: bold;font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.billing-address') }} {{ __('shop::app.mail.order.billing-address') }}
</div> </div>
<div> <div>
@ -83,11 +83,11 @@
<div>---</div> <div>---</div>
<div style="margin-bottom: 40px;"> <div style="margin-bottom: 40px;">
{{ __('admin::app.mail.order.contact') }} : {{ $order->billing_address->phone }} {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
</div> </div>
<div style="font-size: 16px; color: #242424;"> <div style="font-size: 16px; color: #242424;">
{{ __('admin::app.mail.order.payment') }} {{ __('shop::app.mail.order.payment') }}
</div> </div>
<div style="font-weight: bold;font-size: 16px; color: #242424;"> <div style="font-weight: bold;font-size: 16px; color: #242424;">
@ -104,7 +104,7 @@
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<label style="font-size: 16px;color: #5E5E5E;"> <label style="font-size: 16px;color: #5E5E5E;">
{{ __('admin::app.mail.order.price') }} {{ __('shop::app.mail.order.price') }}
</label> </label>
<span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;"> <span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;">
{{ core()->formatPrice($item->price, $invoice->order_currency_code) }} {{ core()->formatPrice($item->price, $invoice->order_currency_code) }}
@ -113,7 +113,7 @@
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<label style="font-size: 16px;color: #5E5E5E;"> <label style="font-size: 16px;color: #5E5E5E;">
{{ __('admin::app.mail.order.quantity') }} {{ __('shop::app.mail.order.quantity') }}
</label> </label>
<span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;"> <span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;">
{{ $item->qty }} {{ $item->qty }}
@ -130,28 +130,28 @@
<div style="font-size: 16px;color: #242424;line-height: 30px;float: right;width: 40%;margin-top: 20px;"> <div style="font-size: 16px;color: #242424;line-height: 30px;float: right;width: 40%;margin-top: 20px;">
<div> <div>
<span>{{ __('admin::app.mail.order.subtotal') }}</span> <span>{{ __('shop::app.mail.order.subtotal') }}</span>
<span style="float: right;"> <span style="float: right;">
{{ core()->formatPrice($invoice->sub_total, $invoice->order_currency_code) }} {{ core()->formatPrice($invoice->sub_total, $invoice->order_currency_code) }}
</span> </span>
</div> </div>
<div> <div>
<span>{{ __('admin::app.mail.order.shipping-handling') }}</span> <span>{{ __('shop::app.mail.order.shipping-handling') }}</span>
<span style="float: right;"> <span style="float: right;">
{{ core()->formatPrice($invoice->shipping_amount, $invoice->order_currency_code) }} {{ core()->formatPrice($invoice->shipping_amount, $invoice->order_currency_code) }}
</span> </span>
</div> </div>
<div> <div>
<span>{{ __('admin::app.mail.order.tax') }}</span> <span>{{ __('shop::app.mail.order.tax') }}</span>
<span style="float: right;"> <span style="float: right;">
{{ core()->formatPrice($invoice->tax_amount, $invoice->order_currency_code) }} {{ core()->formatPrice($invoice->tax_amount, $invoice->order_currency_code) }}
</span> </span>
</div> </div>
<div style="font-weight: bold"> <div style="font-weight: bold">
<span>{{ __('admin::app.mail.order.grand-total') }}</span> <span>{{ __('shop::app.mail.order.grand-total') }}</span>
<span style="float: right;"> <span style="float: right;">
{{ core()->formatPrice($invoice->grand_total, $invoice->order_currency_code) }} {{ core()->formatPrice($invoice->grand_total, $invoice->order_currency_code) }}
</span> </span>
@ -161,14 +161,14 @@
<div style="margin-top: 65px;font-size: 16px;color: #5E5E5E;line-height: 24px;display: inline-block;width: 100%"> <div style="margin-top: 65px;font-size: 16px;color: #5E5E5E;line-height: 24px;display: inline-block;width: 100%">
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{!! {!!
__('admin::app.mail.order.help', [ __('shop::app.mail.order.help', [
'support_email' => '<a style="color:#0041FF" href="mailto:' . config('mail.from.address') . '">' . config('mail.from.address'). '</a>' 'support_email' => '<a style="color:#0041FF" href="mailto:' . config('mail.from.address') . '">' . config('mail.from.address'). '</a>'
]) ])
!!} !!}
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.order.thanks') }} {{ __('shop::app.mail.order.thanks') }}
</p> </p>
</div> </div>
</div> </div>

View File

@ -1,4 +1,4 @@
@component('admin::emails.layouts.master') @component('shop::emails.layouts.master')
<div style="text-align: center;"> <div style="text-align: center;">
<a href="{{ config('app.url') }}"> <a href="{{ config('app.url') }}">
<img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}"> <img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}">
@ -8,15 +8,15 @@
<div style="padding: 30px;"> <div style="padding: 30px;">
<div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;"> <div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;">
<span style="font-weight: bold;"> <span style="font-weight: bold;">
{{ __('admin::app.mail.order.heading') }} {{ __('shop::app.mail.order.heading') }}
</span> <br> </span> <br>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.order.dear', ['customer_name' => $order->customer_full_name]) }}, {{ __('shop::app.mail.order.dear', ['customer_name' => $order->customer_full_name]) }},
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{!! __('admin::app.mail.order.greeting', [ {!! __('shop::app.mail.order.greeting', [
'order_id' => '<a href="' . route('customer.orders.view', $order->id) . '" style="color: #0041FF; font-weight: bold;">#' . $order->id . '</a>', 'order_id' => '<a href="' . route('customer.orders.view', $order->id) . '" style="color: #0041FF; font-weight: bold;">#' . $order->id . '</a>',
'created_at' => $order->created_at 'created_at' => $order->created_at
]) ])
@ -25,13 +25,13 @@
</div> </div>
<div style="font-weight: bold;font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 20px !important;"> <div style="font-weight: bold;font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 20px !important;">
{{ __('admin::app.mail.order.summary') }} {{ __('shop::app.mail.order.summary') }}
</div> </div>
<div style="display: flex;flex-direction: row;margin-top: 20px;justify-content: space-between;margin-bottom: 40px;"> <div style="display: flex;flex-direction: row;margin-top: 20px;justify-content: space-between;margin-bottom: 40px;">
<div style="line-height: 25px;"> <div style="line-height: 25px;">
<div style="font-weight: bold;font-size: 16px;color: #242424;"> <div style="font-weight: bold;font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.shipping-address') }} {{ __('shop::app.mail.order.shipping-address') }}
</div> </div>
<div> <div>
@ -49,11 +49,11 @@
<div>---</div> <div>---</div>
<div style="margin-bottom: 40px;"> <div style="margin-bottom: 40px;">
{{ __('admin::app.mail.order.contact') }} : {{ $order->shipping_address->phone }} {{ __('shop::app.mail.order.contact') }} : {{ $order->shipping_address->phone }}
</div> </div>
<div style="font-size: 16px;color: #242424;"> <div style="font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.shipping') }} {{ __('shop::app.mail.order.shipping') }}
</div> </div>
<div style="font-weight: bold;font-size: 16px;color: #242424;"> <div style="font-weight: bold;font-size: 16px;color: #242424;">
@ -63,7 +63,7 @@
<div style="line-height: 25px;"> <div style="line-height: 25px;">
<div style="font-weight: bold;font-size: 16px;color: #242424;"> <div style="font-weight: bold;font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.billing-address') }} {{ __('shop::app.mail.order.billing-address') }}
</div> </div>
<div> <div>
@ -81,11 +81,11 @@
<div>---</div> <div>---</div>
<div style="margin-bottom: 40px;"> <div style="margin-bottom: 40px;">
{{ __('admin::app.mail.order.contact') }} : {{ $order->billing_address->phone }} {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
</div> </div>
<div style="font-size: 16px; color: #242424;"> <div style="font-size: 16px; color: #242424;">
{{ __('admin::app.mail.order.payment') }} {{ __('shop::app.mail.order.payment') }}
</div> </div>
<div style="font-weight: bold;font-size: 16px; color: #242424;"> <div style="font-weight: bold;font-size: 16px; color: #242424;">
@ -102,7 +102,7 @@
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<label style="font-size: 16px;color: #5E5E5E;"> <label style="font-size: 16px;color: #5E5E5E;">
{{ __('admin::app.mail.order.price') }} {{ __('shop::app.mail.order.price') }}
</label> </label>
<span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;"> <span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;">
{{ core()->formatPrice($item->price, $order->order_currency_code) }} {{ core()->formatPrice($item->price, $order->order_currency_code) }}
@ -111,7 +111,7 @@
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<label style="font-size: 16px;color: #5E5E5E;"> <label style="font-size: 16px;color: #5E5E5E;">
{{ __('admin::app.mail.order.quantity') }} {{ __('shop::app.mail.order.quantity') }}
</label> </label>
<span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;"> <span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;">
{{ $item->qty_ordered }} {{ $item->qty_ordered }}
@ -128,28 +128,28 @@
<div style="font-size: 16px;color: #242424;line-height: 30px;float: right;width: 40%;margin-top: 20px;"> <div style="font-size: 16px;color: #242424;line-height: 30px;float: right;width: 40%;margin-top: 20px;">
<div> <div>
<span>{{ __('admin::app.mail.order.subtotal') }}</span> <span>{{ __('shop::app.mail.order.subtotal') }}</span>
<span style="float: right;"> <span style="float: right;">
{{ core()->formatPrice($order->sub_total, $order->order_currency_code) }} {{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}
</span> </span>
</div> </div>
<div> <div>
<span>{{ __('admin::app.mail.order.shipping-handling') }}</span> <span>{{ __('shop::app.mail.order.shipping-handling') }}</span>
<span style="float: right;"> <span style="float: right;">
{{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }} {{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}
</span> </span>
</div> </div>
<div> <div>
<span>{{ __('admin::app.mail.order.tax') }}</span> <span>{{ __('shop::app.mail.order.tax') }}</span>
<span style="float: right;"> <span style="float: right;">
{{ core()->formatPrice($order->tax_amount, $order->order_currency_code) }} {{ core()->formatPrice($order->tax_amount, $order->order_currency_code) }}
</span> </span>
</div> </div>
<div style="font-weight: bold"> <div style="font-weight: bold">
<span>{{ __('admin::app.mail.order.grand-total') }}</span> <span>{{ __('shop::app.mail.order.grand-total') }}</span>
<span style="float: right;"> <span style="float: right;">
{{ core()->formatPrice($order->grand_total, $order->order_currency_code) }} {{ core()->formatPrice($order->grand_total, $order->order_currency_code) }}
</span> </span>
@ -158,19 +158,19 @@
<div style="margin-top: 65px;font-size: 16px;color: #5E5E5E;line-height: 24px;display: inline-block"> <div style="margin-top: 65px;font-size: 16px;color: #5E5E5E;line-height: 24px;display: inline-block">
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.order.final-summary') }} {{ __('shop::app.mail.order.final-summary') }}
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{!! {!!
__('admin::app.mail.order.help', [ __('shop::app.mail.order.help', [
'support_email' => '<a style="color:#0041FF" href="mailto:' . config('mail.from.address') . '">' . config('mail.from.address'). '</a>' 'support_email' => '<a style="color:#0041FF" href="mailto:' . config('mail.from.address') . '">' . config('mail.from.address'). '</a>'
]) ])
!!} !!}
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.order.thanks') }} {{ __('shop::app.mail.order.thanks') }}
</p> </p>
</div> </div>
</div> </div>

View File

@ -1,4 +1,4 @@
@component('admin::emails.layouts.master') @component('shop::emails.layouts.master')
<div style="text-align: center;"> <div style="text-align: center;">
<a href="{{ config('app.url') }}"> <a href="{{ config('app.url') }}">
<img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}"> <img src="{{ bagisto_asset('vendor/webkul/shop/assets/images/logo.svg') }}">
@ -10,15 +10,15 @@
<div style="padding: 30px;"> <div style="padding: 30px;">
<div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;"> <div style="font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 34px;">
<span style="font-weight: bold;"> <span style="font-weight: bold;">
{{ __('admin::app.mail.shipment.heading', ['order_id' => $order->id, 'shipment_id' => $shipment->id]) }} {{ __('shop::app.mail.shipment.heading', ['order_id' => $order->id, 'shipment_id' => $shipment->id]) }}
</span> <br> </span> <br>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.order.dear', ['customer_name' => $order->customer_full_name]) }}, {{ __('shop::app.mail.order.dear', ['customer_name' => $order->customer_full_name]) }},
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{!! __('admin::app.mail.order.greeting', [ {!! __('shop::app.mail.order.greeting', [
'order_id' => '<a href="' . route('customer.orders.view', $order->id) . '" style="color: #0041FF; font-weight: bold;">#' . $order->id . '</a>', 'order_id' => '<a href="' . route('customer.orders.view', $order->id) . '" style="color: #0041FF; font-weight: bold;">#' . $order->id . '</a>',
'created_at' => $order->created_at 'created_at' => $order->created_at
]) ])
@ -27,13 +27,13 @@
</div> </div>
<div style="font-weight: bold;font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 20px !important;"> <div style="font-weight: bold;font-size: 20px;color: #242424;line-height: 30px;margin-bottom: 20px !important;">
{{ __('admin::app.mail.shipment.summary') }} {{ __('shop::app.mail.shipment.summary') }}
</div> </div>
<div style="display: flex;flex-direction: row;margin-top: 20px;justify-content: space-between;margin-bottom: 40px;"> <div style="display: flex;flex-direction: row;margin-top: 20px;justify-content: space-between;margin-bottom: 40px;">
<div style="line-height: 25px;"> <div style="line-height: 25px;">
<div style="font-weight: bold;font-size: 16px;color: #242424;"> <div style="font-weight: bold;font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.shipping-address') }} {{ __('shop::app.mail.order.shipping-address') }}
</div> </div>
<div> <div>
@ -51,11 +51,11 @@
<div>---</div> <div>---</div>
<div style="margin-bottom: 40px;"> <div style="margin-bottom: 40px;">
{{ __('admin::app.mail.order.contact') }} : {{ $order->shipping_address->phone }} {{ __('shop::app.mail.order.contact') }} : {{ $order->shipping_address->phone }}
</div> </div>
<div style="font-size: 16px;color: #242424;"> <div style="font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.shipping') }} {{ __('shop::app.mail.order.shipping') }}
</div> </div>
<div style="font-size: 16px;color: #242424;"> <div style="font-size: 16px;color: #242424;">
@ -64,18 +64,18 @@
</div> </div>
<div style="margin-top: 5px;"> <div style="margin-top: 5px;">
<span style="font-weight: bold;">{{ __('admin::app.mail.shipment.carrier') }} : </span>{{ $shipment->carrier_title }} <span style="font-weight: bold;">{{ __('shop::app.mail.shipment.carrier') }} : </span>{{ $shipment->carrier_title }}
</div> </div>
<div style="margin-top: 5px;"> <div style="margin-top: 5px;">
<span style="font-weight: bold;">{{ __('admin::app.mail.shipment.tracking-number') }} : </span>{{ $shipment->track_number }} <span style="font-weight: bold;">{{ __('shop::app.mail.shipment.tracking-number') }} : </span>{{ $shipment->track_number }}
</div> </div>
</div> </div>
</div> </div>
<div style="line-height: 25px;"> <div style="line-height: 25px;">
<div style="font-weight: bold;font-size: 16px;color: #242424;"> <div style="font-weight: bold;font-size: 16px;color: #242424;">
{{ __('admin::app.mail.order.billing-address') }} {{ __('shop::app.mail.order.billing-address') }}
</div> </div>
<div> <div>
@ -93,11 +93,11 @@
<div>---</div> <div>---</div>
<div style="margin-bottom: 40px;"> <div style="margin-bottom: 40px;">
{{ __('admin::app.mail.order.contact') }} : {{ $order->billing_address->phone }} {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
</div> </div>
<div style="font-size: 16px; color: #242424;"> <div style="font-size: 16px; color: #242424;">
{{ __('admin::app.mail.order.payment') }} {{ __('shop::app.mail.order.payment') }}
</div> </div>
<div style="font-weight: bold;font-size: 16px; color: #242424;"> <div style="font-weight: bold;font-size: 16px; color: #242424;">
@ -114,7 +114,7 @@
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<label style="font-size: 16px;color: #5E5E5E;"> <label style="font-size: 16px;color: #5E5E5E;">
{{ __('admin::app.mail.order.price') }} {{ __('shop::app.mail.order.price') }}
</label> </label>
<span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;"> <span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;">
{{ core()->formatPrice($item->price, $order->order_currency_code) }} {{ core()->formatPrice($item->price, $order->order_currency_code) }}
@ -123,7 +123,7 @@
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<label style="font-size: 16px;color: #5E5E5E;"> <label style="font-size: 16px;color: #5E5E5E;">
{{ __('admin::app.mail.order.quantity') }} {{ __('shop::app.mail.order.quantity') }}
</label> </label>
<span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;"> <span style="font-size: 18px;color: #242424;margin-left: 40px;font-weight: bold;">
{{ $item->qty }} {{ $item->qty }}
@ -141,14 +141,14 @@
<div style="margin-top: 20px;font-size: 16px;color: #5E5E5E;line-height: 24px;display: inline-block;width: 100%"> <div style="margin-top: 20px;font-size: 16px;color: #5E5E5E;line-height: 24px;display: inline-block;width: 100%">
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{!! {!!
__('admin::app.mail.order.help', [ __('shop::app.mail.order.help', [
'support_email' => '<a style="color:#0041FF" href="mailto:' . config('mail.from.address') . '">' . config('mail.from.address'). '</a>' 'support_email' => '<a style="color:#0041FF" href="mailto:' . config('mail.from.address') . '">' . config('mail.from.address'). '</a>'
]) ])
!!} !!}
</p> </p>
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;"> <p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
{{ __('admin::app.mail.order.thanks') }} {{ __('shop::app.mail.order.thanks') }}
</p> </p>
</div> </div>
</div> </div>

View File

@ -76,18 +76,12 @@
<div class="dropdown-container"> <div class="dropdown-container">
<label>Account</label> <label>Account</label>
<ul> <ul>
<li><a href="{{ route('customer.account.index') }}">Account</a></li>
<li><a href="{{ route('customer.profile.index') }}">Profile</a></li> <li><a href="{{ route('customer.profile.index') }}">Profile</a></li>
<li><a href="{{ route('customer.address.index') }}">Address</a></li>
<li><a href="{{ route('customer.wishlist.index') }}">Wishlist</a></li> <li><a href="{{ route('customer.wishlist.index') }}">Wishlist</a></li>
<li><a href="{{ route('shop.checkout.cart.index') }}">Cart</a></li> <li><a href="{{ route('shop.checkout.cart.index') }}">Cart</a></li>
<li><a href="{{ route('customer.orders.index') }}">Orders</a></li>
<li><a href="{{ route('customer.session.destroy') }}">Logout</a></li> <li><a href="{{ route('customer.session.destroy') }}">Logout</a></li>
</ul> </ul>
@ -143,18 +137,12 @@
<label>Account</label> <label>Account</label>
<ul> <ul>
<li><a href="{{ route('customer.account.index') }}">Account</a></li>
<li><a href="{{ route('customer.profile.index') }}">Profile</a></li> <li><a href="{{ route('customer.profile.index') }}">Profile</a></li>
<li><a href="{{ route('customer.address.index') }}">Address</a></li>
<li><a href="{{ route('customer.wishlist.index') }}">Wishlist</a></li> <li><a href="{{ route('customer.wishlist.index') }}">Wishlist</a></li>
<li><a href="{{ route('shop.checkout.cart.index') }}">Cart</a></li> <li><a href="{{ route('shop.checkout.cart.index') }}">Cart</a></li>
<li><a href="{{ route('customer.orders.index') }}">Orders</a></li>
<li><a href="{{ route('customer.session.destroy') }}">Logout</a></li> <li><a href="{{ route('customer.session.destroy') }}">Logout</a></li>
</ul> </ul>

View File

@ -10,23 +10,13 @@ class AdminsTableSeeder extends Seeder
{ {
public function run() public function run()
{ {
// $characters = '0123456789abcdefghijklmnopqrstuvwxyz'; $role = Role::first();
// $charactersLength = strlen($characters); $admin = new Admin();
// $randomString = ''; $admin->name = str_random(8);
// for ($i = 0; $i < $length; $i++) { $admin->email = 'admin@example.com';
// $randomString .= $characters[rand(0, $charactersLength - 1)]; $admin->password = bcrypt('admin123');
// } $admin->status = 1;
$admin->role_id = $role->id;
$i=0; $admin->save();
for ($i=0;$i<10;$i++) {
$role = Role::first();
$admin = new Admin();
$admin->name = str_random(8);
$admin->email = str_random(10).'@example.com';
$admin->password = bcrypt('admin123');
$admin->status = 1;
$admin->role_id = $role->id;
$admin->save();
}
} }
} }

View File

@ -20,7 +20,7 @@ class AdminResetPassword extends ResetPassword
} }
return (new MailMessage) return (new MailMessage)
->view('shop::emails.admin.forget-password')->with([ ->view('shop::emails.admin.forget-password', [
'user_name' => $notifiable->name, 'user_name' => $notifiable->name,
'token' => $this->token 'token' => $this->token
]); ]);

View File

@ -2588,17 +2588,13 @@ section.review .review-layouter .ratings-reviews .right-side .rater .line-bar .l
flex-direction: column; flex-direction: column;
max-width: 530px; max-width: 530px;
min-width: 380px; min-width: 380px;
min-height: 345px; padding: 25px;
padding-left: 25px;
padding-right: 25px;
} }
.auth-content .login-form .login-text { .auth-content .login-form .login-text {
font-size: 24px; font-size: 24px;
font-weight: bold; font-weight: 600;
color: #242424; margin-bottom: 30px;
margin-top: 5%;
margin-bottom: 3%;
} }
.auth-content .login-form .control-group { .auth-content .login-form .control-group {
@ -2622,9 +2618,6 @@ section.review .review-layouter .ratings-reviews .right-side .rater .line-bar .l
.auth-content .login-form .btn-primary { .auth-content .login-form .btn-primary {
width: 100%; width: 100%;
text-transform: uppercase; text-transform: uppercase;
border-radius: 0px;
height: 45px;
margin-bottom: 4%;
} }
.account-content { .account-content {

File diff suppressed because one or more lines are too long