From 5880fbaa0ab0e87531eddc9c2d42906c4ff3c0d5 Mon Sep 17 00:00:00 2001 From: liqianjin <949671634@qq.com> Date: Mon, 29 May 2023 14:08:51 +0800 Subject: [PATCH] init --- themes/.gitignore | 2 + themes/default/account/account.blade.php | 101 +++++ themes/default/account/address.blade.php | 127 ++++++ themes/default/account/edit.blade.php | 167 +++++++ themes/default/account/forgotten.blade.php | 146 ++++++ themes/default/account/login.blade.php | 201 +++++++++ themes/default/account/order.blade.php | 79 ++++ themes/default/account/order_info.blade.php | 241 ++++++++++ .../default/account/order_success.blade.php | 57 +++ themes/default/account/register.blade.php | 49 ++ themes/default/account/rmas/form.blade.php | 113 +++++ themes/default/account/rmas/index.blade.php | 59 +++ themes/default/account/rmas/info.blade.php | 96 ++++ themes/default/account/wishlist.blade.php | 80 ++++ themes/default/brand/info.blade.php | 20 + themes/default/brand/list.blade.php | 41 ++ themes/default/cart/cart.blade.php | 202 +++++++++ themes/default/cart/mini.blade.php | 70 +++ themes/default/category.blade.php | 152 +++++++ themes/default/checkout.blade.php | 162 +++++++ themes/default/checkout/_address.blade.php | 289 ++++++++++++ themes/default/checkout/payment.blade.php | 41 ++ .../components/account/sidebar.blade.php | 35 ++ themes/default/components/alert.blade.php | 5 + .../default/components/breadcrumbs.blade.php | 15 + themes/default/components/no-data.blade.php | 7 + .../design/_partial/_module_tool.blade.php | 10 + themes/default/design/brand.blade.php | 26 ++ themes/default/design/icons.blade.php | 28 ++ themes/default/design/image100.blade.php | 9 + themes/default/design/image200.blade.php | 13 + themes/default/design/image300.blade.php | 13 + themes/default/design/image401.blade.php | 20 + themes/default/design/product.blade.php | 68 +++ themes/default/design/rich_text.blade.php | 7 + themes/default/design/slideshow.blade.php | 47 ++ themes/default/design/tab_product.blade.php | 47 ++ themes/default/errors/401.blade.php | 5 + themes/default/errors/403.blade.php | 5 + themes/default/errors/404.blade.php | 9 + themes/default/errors/419.blade.php | 5 + themes/default/errors/429.blade.php | 5 + themes/default/errors/500.blade.php | 5 + themes/default/errors/503.blade.php | 5 + themes/default/errors/layout.blade.php | 21 + themes/default/errors/minimal.blade.php | 34 ++ themes/default/home.blade.php | 17 + themes/default/layout/footer.blade.php | 102 +++++ themes/default/layout/header.blade.php | 171 +++++++ themes/default/layout/mail.blade.php | 44 ++ themes/default/layout/master.blade.php | 62 +++ themes/default/layout/product.blade.php | 8 + themes/default/mails/forgotten.blade.php | 39 ++ themes/default/mails/order_new.blade.php | 88 ++++ themes/default/mails/order_update.blade.php | 77 ++++ themes/default/mails/registration.blade.php | 37 ++ themes/default/page_categories/home.blade.php | 50 +++ themes/default/page_categories/show.blade.php | 70 +++ themes/default/pages/article.blade.php | 104 +++++ themes/default/pages/single.blade.php | 16 + themes/default/product.blade.php | 417 ++++++++++++++++++ themes/default/search.blade.php | 22 + themes/default/shared/address-form.blade.php | 197 +++++++++ .../default/shared/filter_bar_block.blade.php | 43 ++ .../shared/filter_sidebar_block.blade.php | 103 +++++ themes/default/shared/form-msg.blade.php | 5 + themes/default/shared/menu-mobile.blade.php | 45 ++ themes/default/shared/menu-pc.blade.php | 61 +++ .../shared/pagination/bootstrap-4.blade.php | 43 ++ .../shared/pagination/default.blade.php | 46 ++ .../shared/pagination/semantic-ui.blade.php | 36 ++ .../pagination/simple-bootstrap-4.blade.php | 27 ++ .../pagination/simple-default.blade.php | 19 + .../pagination/simple-tailwind.blade.php | 25 ++ .../shared/pagination/tailwind.blade.php | 106 +++++ themes/default/shared/product.blade.php | 63 +++ themes/default/shared/quantity.blade.php | 7 + themes/default/shared/steps.blade.php | 18 + 78 files changed, 5107 insertions(+) create mode 100644 themes/.gitignore create mode 100644 themes/default/account/account.blade.php create mode 100644 themes/default/account/address.blade.php create mode 100644 themes/default/account/edit.blade.php create mode 100644 themes/default/account/forgotten.blade.php create mode 100644 themes/default/account/login.blade.php create mode 100644 themes/default/account/order.blade.php create mode 100644 themes/default/account/order_info.blade.php create mode 100644 themes/default/account/order_success.blade.php create mode 100644 themes/default/account/register.blade.php create mode 100644 themes/default/account/rmas/form.blade.php create mode 100644 themes/default/account/rmas/index.blade.php create mode 100644 themes/default/account/rmas/info.blade.php create mode 100644 themes/default/account/wishlist.blade.php create mode 100644 themes/default/brand/info.blade.php create mode 100644 themes/default/brand/list.blade.php create mode 100644 themes/default/cart/cart.blade.php create mode 100644 themes/default/cart/mini.blade.php create mode 100644 themes/default/category.blade.php create mode 100644 themes/default/checkout.blade.php create mode 100644 themes/default/checkout/_address.blade.php create mode 100644 themes/default/checkout/payment.blade.php create mode 100644 themes/default/components/account/sidebar.blade.php create mode 100644 themes/default/components/alert.blade.php create mode 100644 themes/default/components/breadcrumbs.blade.php create mode 100644 themes/default/components/no-data.blade.php create mode 100644 themes/default/design/_partial/_module_tool.blade.php create mode 100644 themes/default/design/brand.blade.php create mode 100644 themes/default/design/icons.blade.php create mode 100644 themes/default/design/image100.blade.php create mode 100644 themes/default/design/image200.blade.php create mode 100644 themes/default/design/image300.blade.php create mode 100644 themes/default/design/image401.blade.php create mode 100644 themes/default/design/product.blade.php create mode 100644 themes/default/design/rich_text.blade.php create mode 100644 themes/default/design/slideshow.blade.php create mode 100644 themes/default/design/tab_product.blade.php create mode 100644 themes/default/errors/401.blade.php create mode 100644 themes/default/errors/403.blade.php create mode 100644 themes/default/errors/404.blade.php create mode 100644 themes/default/errors/419.blade.php create mode 100644 themes/default/errors/429.blade.php create mode 100644 themes/default/errors/500.blade.php create mode 100644 themes/default/errors/503.blade.php create mode 100644 themes/default/errors/layout.blade.php create mode 100644 themes/default/errors/minimal.blade.php create mode 100644 themes/default/home.blade.php create mode 100644 themes/default/layout/footer.blade.php create mode 100644 themes/default/layout/header.blade.php create mode 100644 themes/default/layout/mail.blade.php create mode 100644 themes/default/layout/master.blade.php create mode 100644 themes/default/layout/product.blade.php create mode 100644 themes/default/mails/forgotten.blade.php create mode 100644 themes/default/mails/order_new.blade.php create mode 100644 themes/default/mails/order_update.blade.php create mode 100644 themes/default/mails/registration.blade.php create mode 100644 themes/default/page_categories/home.blade.php create mode 100644 themes/default/page_categories/show.blade.php create mode 100644 themes/default/pages/article.blade.php create mode 100644 themes/default/pages/single.blade.php create mode 100644 themes/default/product.blade.php create mode 100644 themes/default/search.blade.php create mode 100644 themes/default/shared/address-form.blade.php create mode 100644 themes/default/shared/filter_bar_block.blade.php create mode 100644 themes/default/shared/filter_sidebar_block.blade.php create mode 100644 themes/default/shared/form-msg.blade.php create mode 100644 themes/default/shared/menu-mobile.blade.php create mode 100644 themes/default/shared/menu-pc.blade.php create mode 100644 themes/default/shared/pagination/bootstrap-4.blade.php create mode 100644 themes/default/shared/pagination/default.blade.php create mode 100644 themes/default/shared/pagination/semantic-ui.blade.php create mode 100644 themes/default/shared/pagination/simple-bootstrap-4.blade.php create mode 100644 themes/default/shared/pagination/simple-default.blade.php create mode 100644 themes/default/shared/pagination/simple-tailwind.blade.php create mode 100644 themes/default/shared/pagination/tailwind.blade.php create mode 100644 themes/default/shared/product.blade.php create mode 100644 themes/default/shared/quantity.blade.php create mode 100644 themes/default/shared/steps.blade.php diff --git a/themes/.gitignore b/themes/.gitignore new file mode 100644 index 00000000..56002e03 --- /dev/null +++ b/themes/.gitignore @@ -0,0 +1,2 @@ +#* +#!default diff --git a/themes/default/account/account.blade.php b/themes/default/account/account.blade.php new file mode 100644 index 00000000..000c52dd --- /dev/null +++ b/themes/default/account/account.blade.php @@ -0,0 +1,101 @@ +@extends('layout.master') + +@section('body-class', 'page-account') + +@section('content') +
+ + + +
+ + + +
+ @if (\Session::has('success')) +
+
    +
  • {!! \Session::get('success') !!}
  • +
+
+ @endif + @if (0) + + @endif + +
+
+
+@endsection diff --git a/themes/default/account/address.blade.php b/themes/default/account/address.blade.php new file mode 100644 index 00000000..4809a45d --- /dev/null +++ b/themes/default/account/address.blade.php @@ -0,0 +1,127 @@ +@extends('layout.master') + +@section('body-class', 'page-account-address') + +@push('header') + + + +@endpush + +@section('content') +
+ + + +
+ + +
+
+
+
{{ __('shop/account.addresses.index') }}
+
+
+ +
+
+
+
+
+ @{{ address.name }} + @{{ address.phone }} +
+
@{{ address.zipcode }}
+
@{{ address.country }} @{{ address.zone }} @{{ address.city }} + @{{ address.address_1 }}
+
+
{{ __('shop/account.addresses.default_address') }}
+ +
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+@endsection + +@push('add-scripts') + @include('shared.address-form') + +@endpush diff --git a/themes/default/account/edit.blade.php b/themes/default/account/edit.blade.php new file mode 100644 index 00000000..8dba7f14 --- /dev/null +++ b/themes/default/account/edit.blade.php @@ -0,0 +1,167 @@ +@extends('layout.master') + +@section('body-class', 'page-account-edit') + +@push('header') + + +@endpush + +@section('content') +
+ + + +
+ + +
+
+
+
{{ __('shop/account.edit.index') }}
+
+
+
+ @csrf + {{ method_field('put') }} + + @if (session('success')) + + @endif + +
+
+ +
+ +
{{ __('shop/account.edit.suggest') }}
+
+
+
+
+
+ + + {{ $errors->has('name') ? $errors->first('name') : __('common.error_required', ['name' => __('shop/account.edit.name')]) }} +
+
+ + + {{ $errors->has('email') ? $errors->first('email') : __('common.error_required', ['name' => __('shop/account.edit.email')]) }} +
+
+ +
+
+ +
+
+
+
+
+ + + +@endsection + +@push('add-scripts') + +@endpush diff --git a/themes/default/account/forgotten.blade.php b/themes/default/account/forgotten.blade.php new file mode 100644 index 00000000..a1654d70 --- /dev/null +++ b/themes/default/account/forgotten.blade.php @@ -0,0 +1,146 @@ +@extends('layout.master') + +@section('body-class', 'page-forgotten') + +@push('header') + + + +@endpush + + +@section('content') +
+ + + +
+
+
+ +
+

{{ __('shop/forgotten.follow_prompt') }}

+

{{ __('shop/forgotten.email_forCode') }}

+

{{ __('shop/forgotten.enter_password') }}

+ + + + + + + + + + + + + + + + + +
+ +
+ {{ __('shop/forgotten.to_back') }} +
+
+
+
+
+
+@endsection + +@push('add-scripts') + +@endpush \ No newline at end of file diff --git a/themes/default/account/login.blade.php b/themes/default/account/login.blade.php new file mode 100644 index 00000000..a5883449 --- /dev/null +++ b/themes/default/account/login.blade.php @@ -0,0 +1,201 @@ +@extends('layout.master') + +@section('body-class', 'page-login') + +@push('header') + + + +@endpush + + +@section('content') +
+ @if (!request('iframe')) + +

{{ __('shop/login.index') }}

+ @endif + + +
+@endsection + +@push('add-scripts') + +@endpush diff --git a/themes/default/account/order.blade.php b/themes/default/account/order.blade.php new file mode 100644 index 00000000..22ccbcd1 --- /dev/null +++ b/themes/default/account/order.blade.php @@ -0,0 +1,79 @@ +@extends('layout.master') + +@section('body-class', 'page-account-order-list') + +@section('content') +
+ + + +
+ + +
+ +
+
+
+@endsection diff --git a/themes/default/account/order_info.blade.php b/themes/default/account/order_info.blade.php new file mode 100644 index 00000000..29dba1cc --- /dev/null +++ b/themes/default/account/order_info.blade.php @@ -0,0 +1,241 @@ +@extends('layout.master') + +@section('body-class', 'page-account-order-info') + +@section('content') +
+ + + +
+ + +
+ + @if ($errors->any()) + @foreach ($errors->all() as $error) + + @endforeach + @endif + +
+
+
{{ __('shop/account.order.order_info.order_details') }}
+
+ @if ($order->status == 'unpaid') + {{ __('shop/account.order.order_info.to_pay') }} + + @endif + @if ($order->status == 'shipped') + + @endif +
+
+
+
+ + + + + + + + + + + + + + + + + +
{{ __('shop/account.order.order_info.order_number') }}{{ __('shop/account.order.order_info.order_date') }}{{ __('shop/account.order.order_info.state') }}{{ __('shop/account.order.order_info.order_amount') }}
{{ $order->number }}{{ $order->created_at }} + {{ __("common.order.{$order->status}") }} + {{ currency_format($order->total, $order->currency_code, $order->currency_value) }}
+
+
+
+
+
{{ __('order.address_info') }}
+
+ + + + + + + + + + + + + +
{{ __('order.shipping_address') }}{{ __('order.payment_address') }}
+
{{ __('address.name') }}:{{ $order->shipping_customer_name }} ({{ $order->shipping_telephone }})
+
+ {{ __('address.address') }}: + {{ $order->shipping_address_1 }} + {{ $order->shipping_address_2 }} + {{ $order->shipping_city }} + {{ $order->shipping_zone }} + {{ $order->shipping_country }} +
+
{{ __('address.post_code') }}:{{ $order->shipping_zipcode }}
+
+
{{ __('address.name') }}:{{ $order->payment_customer_name }} ({{ $order->payment_telephone }})
+
+ {{ __('address.address') }}: + {{ $order->payment_address_1 }} + {{ $order->payment_address_2 }} + {{ $order->payment_city }} + {{ $order->payment_zone }} + {{ $order->payment_country }} +
+
{{ __('address.post_code') }}:{{ $order->payment_zipcode }}
+
+
+
+
+
+
{{ __('shop/account.order.order_info.order_items') }}
+
+
+ @foreach ($order->orderProducts as $product) +
+
+
+
+ +
+ {{ currency_format($product->price, $order->currency_code, $order->currency_value) }} + x {{ $product->quantity }} + = {{ currency_format($product->price * $product->quantity, $order->currency_code, $order->currency_value) }} +
+
+
+ @if ($order->status == 'completed') + {{ __('shop/account.order.order_info.apply_after_sales') }} + @endif +
+ @endforeach +
+
+ +
+
+
{{ __('shop/account.order.order_info.order_total') }}
+
+
+ + + @foreach (array_chunk($order->orderTotals->all(), 2) as $totals) + + @foreach ($totals as $total) + + + @endforeach + + @endforeach + +
{{ $total->title }}{{ currency_format($total->value, $order->currency_code, $order->currency_value) }}
+
+
+ + @foreach ($html_items as $item) + {!! $item !!} + @endforeach + + @if (0) +
+
+
{{ __('shop/account.order.order_info.logistics_status') }}
+
+
+ +
+
+ @endif + + @if ($order->orderShipments->count()) +
+
{{ __('order.order_shipments') }}
+
+
+ + + + + + + + + + @foreach ($order->orderShipments as $ship) + + + + + + @endforeach + +
{{ __('order.express_company') }}{{ __('order.express_number') }}{{ __('order.history_created_at') }}
{{ $ship->express_company }}{{ $ship->express_number }}{{ $ship->created_at }}
+
+
+
+ @endif + + @if ($order->orderHistories->count()) +
+
+
{{ __('shop/account.order.order_info.order_status') }}
+
+
+ + + + + + + + + + @foreach ($order->orderHistories as $orderHistory) + + + + + + @endforeach + +
{{ __('shop/account.order.order_info.state') }}{{ __('shop/account.order.order_info.remark') }}{{ __('shop/account.order.order_info.update_time') }}
{{ $orderHistory->status_format }}{{ $orderHistory->comment }}{{ $orderHistory->created_at }}
+
+
+ @endif +
+
+
+@endsection + + +@push('add-scripts') + +@endpush diff --git a/themes/default/account/order_success.blade.php b/themes/default/account/order_success.blade.php new file mode 100644 index 00000000..967b0655 --- /dev/null +++ b/themes/default/account/order_success.blade.php @@ -0,0 +1,57 @@ +@extends('layout.master') + +@section('body-class', 'page-order-success') + +@section('content') +
+ + {{-- --}} + +
+
@include('shared.steps', ['steps' => 3])
+
+ +
+
+
+
+ +
+
+

{{ __('shop/account.order.order_success.order_success') }}

+
+ + + + + + + + + @if (current_customer()) + + @endif + + + + + +
{{ __('shop/account.order.order_success.order_number') }}:{{ $order['number'] }}{{ __('shop/account.order.order_success.amounts_payable') }}:{{ currency_format($order['total']) }}
{{ __('shop/account.order.order_success.payment_method') }}:{{ $order['payment_method_name'] }}{{ __('shop/account.order.order_success.view_order') }}
{{ __('shop/account.order.order_success.pay_now') }}
+
+ +
{{ __('shop/account.order.order_success.kind_tips') }}
+
{{ __('shop/account.order.order_success.also') }}:{{ __('shop/account.order.order_success.continue_purchase') }}
+
+
+
+
{{ __('shop/account.order.order_success.contact_customer_service') }}:
+
{{ __('shop/account.order.order_success.emaill') }}: {{ system_setting('base.email', '') }}
+
{{ __('shop/account.order.order_success.service_hotline') }}: {{ system_setting('base.telephone', '') }}
+
+
+
+
+@endsection +@push('add-scripts') + +@endpush diff --git a/themes/default/account/register.blade.php b/themes/default/account/register.blade.php new file mode 100644 index 00000000..c154c259 --- /dev/null +++ b/themes/default/account/register.blade.php @@ -0,0 +1,49 @@ +@extends('layout.master') + +@section('content') +
+

Register

+
+ @csrf + + @hookwrapper('account.register.email') +
+
+
+ 邮箱 +
+ +
+ @error('register.email') + + @enderror +
+ @endhookwrapper + + @hookwrapper('account.register.password') +
+
+
+ 密码 +
+ +
+ @error('register.password') + + @enderror +
+ @endhookwrapper + + @hook('account.register.email.after') + + @if (session('error')) +
+ {{ session('error') }} +
+ @endif + + +
+
+@endsection diff --git a/themes/default/account/rmas/form.blade.php b/themes/default/account/rmas/form.blade.php new file mode 100644 index 00000000..7ea2484e --- /dev/null +++ b/themes/default/account/rmas/form.blade.php @@ -0,0 +1,113 @@ +@extends('layout.master') + +@section('body-class', 'page-account-rmas') + +@push('header') + {{-- --}} +@endpush + +@section('content') +
+ + + + {{-- --}} + + +
+ + +
+
+
+
{{ __('shop/account.rma.rma_form.index') }}
+
+
+
+
+
+ +
+
+
{{ $orderProduct->name }}
+
{{ $orderProduct->price }} x {{ $orderProduct->quantity }}
+
+
+
+ +
+ @csrf + {{-- {{ method_field('put') }} --}} + + @if (session('success')) + + @endif + + + +
+
+ + +
+ +
+ + + @if ($errors->has('quantity')) + {{ $errors->first('quantity') }} + @endif +
+ +
+ + +
+ +
+ + + + @if ($errors->has('rma_reason_id')) + {{ $errors->first('rma_reason_id') }} + @endif +
+ +
+ +
+ + +
+ +
+ +
+
+ +
+
+
+
+
+@endsection + +@push('add-scripts') + +@endpush diff --git a/themes/default/account/rmas/index.blade.php b/themes/default/account/rmas/index.blade.php new file mode 100644 index 00000000..1cf1c892 --- /dev/null +++ b/themes/default/account/rmas/index.blade.php @@ -0,0 +1,59 @@ +@extends('layout.master') + +@section('body-class', 'page-account-rmas') + +@section('content') +
+ + + +
+ +
+ +
+
+
+@endsection diff --git a/themes/default/account/rmas/info.blade.php b/themes/default/account/rmas/info.blade.php new file mode 100644 index 00000000..7f008df4 --- /dev/null +++ b/themes/default/account/rmas/info.blade.php @@ -0,0 +1,96 @@ +@extends('layout.master') + +@section('body-class', 'page-account-rmas') + +@push('header') + {{-- --}} +@endpush + +@section('content') +
+ + + +
+ + +
+
+
+
{{ __('shop/account.rma.rma_info.index') }}
+
+
+
+
+
+ +
+
+
{{ $orderProduct->name }}
+
{{ $orderProduct->price }} x {{ $orderProduct->quantity }}
+
+
+
+
+
+ + @foreach ($types as $key => $item) + @if ($key == $rma->type) +
{{ $item}}
+ @endif + @endforeach +
+ +
+ +
{{ $rma->quantity }}
+
+ +
+ +
{{ $rma->status }}
+
+ +
+ +
+ @if ($rma->opened) + {{ __('common.yes') }} + @else + {{ __('common.no') }} + @endif +
+
+ +
+ +
+ {{ $rma->created_at }} +
+
+ +
+ +
+ @foreach ($reasons as $item) + @if ($rma->rma_reason_id == $item['id']) + {{$item['name']}} + @endif + @endforeach +
+
+ +
+ +
{{$rma->comment}}
+
+
+
+
+
+
+
+@endsection + +@push('add-scripts') +@endpush diff --git a/themes/default/account/wishlist.blade.php b/themes/default/account/wishlist.blade.php new file mode 100644 index 00000000..de8c7207 --- /dev/null +++ b/themes/default/account/wishlist.blade.php @@ -0,0 +1,80 @@ +@extends('layout.master') + +@section('body-class', 'page-account-wishlist') + +@section('content') +
+ + +
+ + +
+
+
+
{{ __('shop/account.wishlist.index') }}
+
+
+ + + + + + + + + + + @if (count($wishlist)) + @foreach ($wishlist as $item) + + + + + + + @endforeach + @else + + + + @endif + +
{{ __('shop/account.wishlist.product') }}{{ __('shop/account.wishlist.price') }}
+
+
{{ $item['product_name'] }}{{ $item['price'] }} + +
+ +
+
+
+
+
+
+@endsection + +@push('add-scripts') + +@endpush diff --git a/themes/default/brand/info.blade.php b/themes/default/brand/info.blade.php new file mode 100644 index 00000000..09c353e7 --- /dev/null +++ b/themes/default/brand/info.blade.php @@ -0,0 +1,20 @@ +@extends('layout.master') +@section('body-class', 'page-categories') +@section('title', $brand->name) + +@section('content') +
+ + + +
+ @foreach ($products_format as $product) +
@include('shared.product')
+ @endforeach +
+ + {{ $products->links('shared/pagination/bootstrap-4') }} + +
+ +@endsection diff --git a/themes/default/brand/list.blade.php b/themes/default/brand/list.blade.php new file mode 100644 index 00000000..9650fdd1 --- /dev/null +++ b/themes/default/brand/list.blade.php @@ -0,0 +1,41 @@ +@extends('layout.master') +@section('body-class', 'page-brands') + +@section('content') +
+ + +

{{ __('shop/brands.index') }}

+ + + + +
+ +@endsection diff --git a/themes/default/cart/cart.blade.php b/themes/default/cart/cart.blade.php new file mode 100644 index 00000000..cf0d55e4 --- /dev/null +++ b/themes/default/cart/cart.blade.php @@ -0,0 +1,202 @@ +@extends('layout.master') + +@section('body-class', 'page-cart') + +@push('header') + + + + +@endpush + +@section('content') +
+ + + +
+
@include('shared.steps', ['steps' => 1])
+
+ + @if ($errors->has('error')) + + @endif + +
+
+
+
+

{{ __('shop/carts.commodity') }}

+
+ + + + + + + + + + + + + + + + + + + +
+ + + {{ __('shop/carts.index') }}{{ __('shop/carts.commodity') }}{{ __('shop/carts.subtotal') }}{{ __('common.action') }}
+
+ +
+
+
+
+
@{{ product.variant_labels }}
+
@{{ product.price_format }}
+
+
+ +
+ + +
+
+
@{{ product.subtotal_format }} + +
+
+ @hook('carts.products.after') +
+
+
+
+
+
+
+

{{ __('shop/carts.product_total') }}

+
+
    +
  • {{ __('shop/carts.all') }}@{{ allProduct }}
  • +
  • {{ __('shop/carts.selected') }}@{{ total_quantity }}
  • +
  • {{ __('shop/carts.product_total') }}@{{ amount_format }}
  • +
  • + +
  • +
+
+
+
+
+
+
+
+
+
+ +
+
+
{{ __('shop/carts.cart_empty') }}
+

{{ __('shop/carts.go_buy') }}

+
+ +
+
+
+ +@endsection + +@push('add-scripts') + +@endpush diff --git a/themes/default/cart/mini.blade.php b/themes/default/cart/mini.blade.php new file mode 100644 index 00000000..49ce6670 --- /dev/null +++ b/themes/default/cart/mini.blade.php @@ -0,0 +1,70 @@ +
+
{{ __('shop/carts.mini') }}
+ +
+
+ @php $check = 0 @endphp + + @if ($carts) +
+ @foreach ($carts as $cart) + @if ($cart['selected']) @php $check = $check + 1 @endphp @endif +
+
+ +
+
+
+
+ {{ $cart['name'] }} +
{{ $cart['variant_labels'] }}
+
+
+ {{ $cart['price_format'] }} x + +
+ + {{ __('common.delete') }} +
+
+
+
+ @endforeach +
+ @else +
+
+
+ +
+
+
{{ __('shop/carts.cart_empty') }}
+

{{ __('shop/carts.go_buy') }}

+
+ +
+
+ @endif +
+ +@if ($carts) + +@endif diff --git a/themes/default/category.blade.php b/themes/default/category.blade.php new file mode 100644 index 00000000..399792a6 --- /dev/null +++ b/themes/default/category.blade.php @@ -0,0 +1,152 @@ +@extends('layout.master') +@section('body-class', 'page-categories') +@section('title', $category->description->meta_title ?: system_setting('base.meta_title', 'BeikeShop开源好用的跨境电商系统 - BeikeShop官网') .' - '. $category->description->name) +@section('keywords', $category->description->meta_keywords ?: system_setting('base.meta_keyword')) +@section('description', $category->description->meta_description ?: system_setting('base.meta_description')) + +@push('header') + +@endpush + +@section('content') +
+ + + +
+
+
@include('shared.filter_sidebar_block')
+
+ +
+
+
    + @foreach ($filter_data['attr'] as $index => $attr) + @foreach ($attr['values'] as $value_index => $value) + @if ($value['selected']) +
  • + {{ $attr['name'] }}: {{ $value['name'] }} +
  • + @endif + @endforeach + @endforeach +
  • {{ __('common.delete_all') }}
  • +
+
+ + @if (count($products_format)) + @include('shared.filter_bar_block') + @if ($children) +
+ {{ __('category.children') }}: + @foreach ($children as $item) + {{ $item['name'] }} + @endforeach +
+ @endif +
+ @foreach ($products_format as $product) +
+ @include('shared.product') +
+ @endforeach +
+ @else + + @endif + + {{ $products->links('shared/pagination/bootstrap-4') }} +
+
+
+ +@endsection + +@push('add-scripts') + +@endpush \ No newline at end of file diff --git a/themes/default/checkout.blade.php b/themes/default/checkout.blade.php new file mode 100644 index 00000000..bcaad84d --- /dev/null +++ b/themes/default/checkout.blade.php @@ -0,0 +1,162 @@ +@extends('layout.master') + +@section('body-class', 'page-checkout') + +@push('header') + + + + +@endpush + +@section('content') +
+ + + +
+
@include('shared.steps', ['steps' => 2])
+
+ +
+
+
+
+ @include('checkout._address') + +
+
{{ __('shop/checkout.payment_method') }}
+
+ @foreach ($payment_methods as $payment) +
+
+ + +
+
+
{{ $payment['name'] }}
+
{!! $payment['description'] !!}
+
+
+ @endforeach +
+
+ +
+
{{ __('shop/checkout.delivery_method') }}
+
+ @foreach ($shipping_methods as $methods) + @foreach ($methods['quotes'] as $shipping) +
+
+ + +
+
+
{{ $shipping['name'] }}
+
{!! $shipping['description'] !!}
+
{!! $shipping['html'] ?? '' !!}
+
+
+ @endforeach + @endforeach +
+
+
+
+
+ +
+
+ @if (!current_customer()) +
+
+
{{ __('shop/login.login_and_sign') }}
+
+
+ +
+
+ @endif + +
+
+
{{ __('shop/checkout.cart_totals') }}
+ {{ $carts['quantity'] }} +
+
+
+ @foreach ($carts['carts'] as $cart) +
+
+ +
+
{{ $cart['name'] }}
+ @if ($cart['variant_labels']) +
{{ $cart['variant_labels'] }}
+ @endif +
+
+
+
{{ $cart['price_format'] }}
+
x {{ $cart['quantity'] }}
+
+
+ @endforeach +
+
    + @foreach ($totals as $total) +
  • {{ $total['title'] }}{{ $total['amount_format'] }}
  • + @endforeach +
+
+ +
+
+
+
+
+
+
+ @endsection + +@push('add-scripts') + +@endpush diff --git a/themes/default/checkout/_address.blade.php b/themes/default/checkout/_address.blade.php new file mode 100644 index 00000000..95ed6c4d --- /dev/null +++ b/themes/default/checkout/_address.blade.php @@ -0,0 +1,289 @@ +
+
+
+
+
{{ __('shop/checkout.address') }}
+ {{ __('shop/checkout.same_as_shipping_address') }} + +
+ +
+
+
+ + +
+
+
+ +
+
+
+
{{ __('shop/checkout.payment_address') }}
+
+ +
+
+
+ + +
+
+
+ + +
+@push('add-scripts') +@include('shared.address-form') + +@endpush diff --git a/themes/default/checkout/payment.blade.php b/themes/default/checkout/payment.blade.php new file mode 100644 index 00000000..4ae147e9 --- /dev/null +++ b/themes/default/checkout/payment.blade.php @@ -0,0 +1,41 @@ +@extends('layout.master') + +@section('body-class', 'page-payment') + +@section('content') +
+
+
@include('shared.steps', ['steps' => 4])
+
+ +
+
+
+
+
+ +
+
+

{{ __('shop/checkout.payment.please_pay') }}

+
+ + + + + + + + + + +
{{ __('shop/checkout.payment.order_number') }}:{{ $order['number'] }}{{ __('shop/checkout.payment.amounts_payable') }}:{{ $order['total_format'] }}
{{ __('shop/checkout.payment.payment_method') }}:{{ $order['payment_method_name'] }}
+
+ + {!! $payment !!} +
+
+
+
+
+
+@endsection diff --git a/themes/default/components/account/sidebar.blade.php b/themes/default/components/account/sidebar.blade.php new file mode 100644 index 00000000..b28b9381 --- /dev/null +++ b/themes/default/components/account/sidebar.blade.php @@ -0,0 +1,35 @@ +
+
+
+
+ + +
+ + +
+
diff --git a/themes/default/components/alert.blade.php b/themes/default/components/alert.blade.php new file mode 100644 index 00000000..0fe2eae1 --- /dev/null +++ b/themes/default/components/alert.blade.php @@ -0,0 +1,5 @@ +
+ + {{ $msg }} + +
\ No newline at end of file diff --git a/themes/default/components/breadcrumbs.blade.php b/themes/default/components/breadcrumbs.blade.php new file mode 100644 index 00000000..4e4db13e --- /dev/null +++ b/themes/default/components/breadcrumbs.blade.php @@ -0,0 +1,15 @@ +@unless ($breadcrumbs->isEmpty()) + +@endunless diff --git a/themes/default/components/no-data.blade.php b/themes/default/components/no-data.blade.php new file mode 100644 index 00000000..d08eb46f --- /dev/null +++ b/themes/default/components/no-data.blade.php @@ -0,0 +1,7 @@ +
+ +
{{ $text }}
+ @if ($link) + {{ $btn }} + @endif +
\ No newline at end of file diff --git a/themes/default/design/_partial/_module_tool.blade.php b/themes/default/design/_partial/_module_tool.blade.php new file mode 100644 index 00000000..43626a93 --- /dev/null +++ b/themes/default/design/_partial/_module_tool.blade.php @@ -0,0 +1,10 @@ +@if ($design) +
+
+
+
+
+
+
+
+@endif diff --git a/themes/default/design/brand.blade.php b/themes/default/design/brand.blade.php new file mode 100644 index 00000000..17464469 --- /dev/null +++ b/themes/default/design/brand.blade.php @@ -0,0 +1,26 @@ +
+ @include('design._partial._module_tool') + +
+
{{ $content['title'] }}
+
+
+ @foreach ($content['brands'] as $brand) + + @endforeach +
+
+ @if ($content['brands']) + + @endif +
+
\ No newline at end of file diff --git a/themes/default/design/icons.blade.php b/themes/default/design/icons.blade.php new file mode 100644 index 00000000..6268548b --- /dev/null +++ b/themes/default/design/icons.blade.php @@ -0,0 +1,28 @@ +
+ @include('design._partial._module_tool') + +
+ @if ($content['title']) +
{{ $content['title'] }}
+ @endif + +
+
\ No newline at end of file diff --git a/themes/default/design/image100.blade.php b/themes/default/design/image100.blade.php new file mode 100644 index 00000000..bc380b78 --- /dev/null +++ b/themes/default/design/image100.blade.php @@ -0,0 +1,9 @@ +
+ @include('design._partial._module_tool') + +
+
+ +
+
+
\ No newline at end of file diff --git a/themes/default/design/image200.blade.php b/themes/default/design/image200.blade.php new file mode 100644 index 00000000..3695e859 --- /dev/null +++ b/themes/default/design/image200.blade.php @@ -0,0 +1,13 @@ +
+ @include('design._partial._module_tool') + +
+
+
+ @foreach ($content['images'] as $item) +
+ @endforeach +
+
+
+
\ No newline at end of file diff --git a/themes/default/design/image300.blade.php b/themes/default/design/image300.blade.php new file mode 100644 index 00000000..ab3fd0ad --- /dev/null +++ b/themes/default/design/image300.blade.php @@ -0,0 +1,13 @@ +
+ @include('design._partial._module_tool') + +
+
+
+ @foreach ($content['images'] as $item) +
+ @endforeach +
+
+
+
\ No newline at end of file diff --git a/themes/default/design/image401.blade.php b/themes/default/design/image401.blade.php new file mode 100644 index 00000000..f691f819 --- /dev/null +++ b/themes/default/design/image401.blade.php @@ -0,0 +1,20 @@ +
+ @include('design._partial._module_tool') + +
+
+
+
+ +
+
+
+ + +
+
+
+
+
+
+
\ No newline at end of file diff --git a/themes/default/design/product.blade.php b/themes/default/design/product.blade.php new file mode 100644 index 00000000..22c1e753 --- /dev/null +++ b/themes/default/design/product.blade.php @@ -0,0 +1,68 @@ +
+ @include('design._partial._module_tool') + +
+
+
{{ $content['title'] }}
+ @if ($content['products']) +
+
+ @foreach ($content['products'] as $product) +
+ @include('shared.product') +
+ @endforeach +
+
+
+
+
+ @elseif (!$content['products'] and $design) +
+ @for ($s = 0; $s < 4; $s++) +
+
+
+
请配置商品
+
+ 66.66 + 99.99 +
+
+
+ @endfor +
+ @endif +
+
+ + +
\ No newline at end of file diff --git a/themes/default/design/rich_text.blade.php b/themes/default/design/rich_text.blade.php new file mode 100644 index 00000000..11427661 --- /dev/null +++ b/themes/default/design/rich_text.blade.php @@ -0,0 +1,7 @@ +
+ @include('design._partial._module_tool') + +
+ {!! $content['data'] !!} +
+
\ No newline at end of file diff --git a/themes/default/design/slideshow.blade.php b/themes/default/design/slideshow.blade.php new file mode 100644 index 00000000..4ba52efb --- /dev/null +++ b/themes/default/design/slideshow.blade.php @@ -0,0 +1,47 @@ +@push('header') + + +@endpush + +
+ @include('design._partial._module_tool') + +
+
+
+ @foreach($content['images'] as $image) +
+ +
+ @endforeach +
+
+
+
+
+
+ + +
+ + + diff --git a/themes/default/design/tab_product.blade.php b/themes/default/design/tab_product.blade.php new file mode 100644 index 00000000..265c595b --- /dev/null +++ b/themes/default/design/tab_product.blade.php @@ -0,0 +1,47 @@ +
+ @include('design._partial._module_tool') + +
+
{{ $content['title'] }}
+
+ @if ($content['tabs']) + +
+ @foreach ($content['tabs'] as $products) +
+
+ @if ($products['products']) + @foreach ($products['products'] as $product) +
+ @include('shared.product') +
+ @endforeach + @elseif (!$products['products'] and $design) + @for ($s = 0; $s < 8; $s++) +
+
+
+
请配置商品
+
+ 66.66 + 99.99 +
+
+
+ @endfor + @endif +
+
+ @endforeach +
+ @endif +
+
+
+ + + diff --git a/themes/default/errors/401.blade.php b/themes/default/errors/401.blade.php new file mode 100644 index 00000000..5c586db9 --- /dev/null +++ b/themes/default/errors/401.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Unauthorized')) +@section('code', '401') +@section('message', __('Unauthorized')) diff --git a/themes/default/errors/403.blade.php b/themes/default/errors/403.blade.php new file mode 100644 index 00000000..a5506f01 --- /dev/null +++ b/themes/default/errors/403.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Forbidden')) +@section('code', '403') +@section('message', __($exception->getMessage() ?: 'Forbidden')) diff --git a/themes/default/errors/404.blade.php b/themes/default/errors/404.blade.php new file mode 100644 index 00000000..a83bb662 --- /dev/null +++ b/themes/default/errors/404.blade.php @@ -0,0 +1,9 @@ +@extends('errors.layout') +@section('title', __('common.error_page')) + +@section('content') + +@endsection diff --git a/themes/default/errors/419.blade.php b/themes/default/errors/419.blade.php new file mode 100644 index 00000000..c09216e2 --- /dev/null +++ b/themes/default/errors/419.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Page Expired')) +@section('code', '419') +@section('message', __('Page Expired')) diff --git a/themes/default/errors/429.blade.php b/themes/default/errors/429.blade.php new file mode 100644 index 00000000..f01b07b8 --- /dev/null +++ b/themes/default/errors/429.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Too Many Requests')) +@section('code', '429') +@section('message', __('Too Many Requests')) diff --git a/themes/default/errors/500.blade.php b/themes/default/errors/500.blade.php new file mode 100644 index 00000000..d9e95d9b --- /dev/null +++ b/themes/default/errors/500.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Server Error')) +@section('code', '500') +@section('message', __('Server Error')) diff --git a/themes/default/errors/503.blade.php b/themes/default/errors/503.blade.php new file mode 100644 index 00000000..c5a9dde1 --- /dev/null +++ b/themes/default/errors/503.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Service Unavailable')) +@section('code', '503') +@section('message', __('Service Unavailable')) diff --git a/themes/default/errors/layout.blade.php b/themes/default/errors/layout.blade.php new file mode 100644 index 00000000..42f64e22 --- /dev/null +++ b/themes/default/errors/layout.blade.php @@ -0,0 +1,21 @@ + + + + + + + @yield('title') + + + + +
+
+
+ @yield('content') +
+
+
+ + + diff --git a/themes/default/errors/minimal.blade.php b/themes/default/errors/minimal.blade.php new file mode 100644 index 00000000..db69f254 --- /dev/null +++ b/themes/default/errors/minimal.blade.php @@ -0,0 +1,34 @@ + + + + + + + @yield('title') + + + + + + +
+
+
+
+ @yield('code') +
+ +
+ @yield('message') +
+
+
+
+ + diff --git a/themes/default/home.blade.php b/themes/default/home.blade.php new file mode 100644 index 00000000..4af8d1b6 --- /dev/null +++ b/themes/default/home.blade.php @@ -0,0 +1,17 @@ +@extends('layout.master') +@section('body-class', 'page-home') +@section('content') + +
+ + @hook('footer.modules.before') + + @foreach($modules as $module) + @include($module['view_path'], $module) + @endforeach + + @hook('footer.modules.after') + +
+ +@endsection diff --git a/themes/default/layout/footer.blade.php b/themes/default/layout/footer.blade.php new file mode 100644 index 00000000..e733ef7c --- /dev/null +++ b/themes/default/layout/footer.blade.php @@ -0,0 +1,102 @@ + diff --git a/themes/default/layout/header.blade.php b/themes/default/layout/header.blade.php new file mode 100644 index 00000000..0e8cd219 --- /dev/null +++ b/themes/default/layout/header.blade.php @@ -0,0 +1,171 @@ +
+
+
+ + + @if (system_setting('base.telephone', '')) + + @endif +
+
+ +
+ +
+ +
+
+
+
+ +
+
+ +
+
+ + +
+
+
+
+
+
{{ __('common.menu') }}
+ +
+
+ @if (is_mobile()) + @include('shared.menu-mobile') + @endif +
+
+ + @if (!equal_route('shop.carts.index')) +
+ @endif + +
+
+ + +
+
+
diff --git a/themes/default/layout/mail.blade.php b/themes/default/layout/mail.blade.php new file mode 100644 index 00000000..edfd543b --- /dev/null +++ b/themes/default/layout/mail.blade.php @@ -0,0 +1,44 @@ +
+
+
+ + + + + + + + +
+
+ + + +
+ +

+
+ + @yield('content') +
+
+ +
+ + + + + + + + +
+

+ {{ config('app.name') }} © {{ date('Y') }} All Rights Reserved +

+
+
+
+
+
+
diff --git a/themes/default/layout/master.blade.php b/themes/default/layout/master.blade.php new file mode 100644 index 00000000..4c221f1d --- /dev/null +++ b/themes/default/layout/master.blade.php @@ -0,0 +1,62 @@ + + + + + + + + + + @yield('title', system_setting('base.meta_title', 'BeikeShop开源好用的跨境电商系统 - BeikeShop官网') ) + + + + + + + + + + + + @if (system_setting('base.head_code')) + {!! system_setting('base.head_code') !!} + @endif + @stack('header') + + + @if (!request('iframe')) + @include('layout.header') + @endif + + @yield('content') + + @if (!request('iframe')) + @include('layout.footer') + @endif + + + + @stack('add-scripts') + + + diff --git a/themes/default/layout/product.blade.php b/themes/default/layout/product.blade.php new file mode 100644 index 00000000..ade120d5 --- /dev/null +++ b/themes/default/layout/product.blade.php @@ -0,0 +1,8 @@ +
+
+
{{ $product['name'] }}
+
+ $55.00 + $125.00 +
+
diff --git a/themes/default/mails/forgotten.blade.php b/themes/default/mails/forgotten.blade.php new file mode 100644 index 00000000..ab28a41a --- /dev/null +++ b/themes/default/mails/forgotten.blade.php @@ -0,0 +1,39 @@ +@extends('layout.mail') + +@section('content') + + + + +

+ {{ __('mail.retrieve_password_title') }} +

+

+ {{ __('mail.retrieve_password_text') }} + {{ __('mail.not_oneself') }} + +

+

+ {{ __('shop/forgotten.verification_code') }}: + {{ $code }} + +

+

+ + {{ __('mail.retrieve_password_btn') }} + +

+
+
+

+ {{ __('mail.sincerely') }} +
+ {{ config('app.name') }} {{ __('mail.team') }} +

+
+
+ + + + +@endsection \ No newline at end of file diff --git a/themes/default/mails/order_new.blade.php b/themes/default/mails/order_new.blade.php new file mode 100644 index 00000000..48a17ccc --- /dev/null +++ b/themes/default/mails/order_new.blade.php @@ -0,0 +1,88 @@ +@extends('layout.mail') + +@section('content') + + + + +

+ {{ __('mail.order_success') }} +

+

+ {{ __('mail.customer_name', ['name' => $order->customer_name]) }}! +

+

+ {{ __('mail.order_success') }} + {{ __('mail.not_oneself') }} + +

+

{{ __('shop/account.order.order_info.order_details') }}:

+ + + + + + + + + + + + + + + + + +
{{ __('shop/account.order.order_info.order_number') }}{{ __('shop/account.order.order_info.order_date') }}{{ __('shop/account.order.order_info.state') }}{{ __('shop/account.order.order_info.order_amount') }}
{{ $order->number }}{{ $order->created_at }} + {{ __("common.order.{$order->status}") }} + {{ currency_format($order->total, $order->currency_code, $order->currency_value) }}
+ +

{{ __('shop/account.order.order_info.order_items') }}:

+ + + + + + + + + + + @foreach ($order->orderProducts as $product) + + + + + + + @endforeach + +
{{ __('product.image') }}{{ __('product.name') }}{{ __('order.product_quantity') }}{{ __('product.price') }}
{{ $product->name }}{{ $product->quantity }}{{ currency_format($product->price, $order->currency_code, $order->currency_value) }}
+ +

{{ __('shop/account.order.order_info.order_total') }}:

+ + + @foreach ($order->orderTotals as $total) + + + + + @endforeach + +
{{ $total->title }}{{ currency_format($total->value, $order->currency_code, $order->currency_value) }}
+ +
+
+

+ {{ __('mail.sincerely') }} +
+ {{ config('app.name') }} {{ __('mail.team') }} +

+
+
+ + + + +@endsection diff --git a/themes/default/mails/order_update.blade.php b/themes/default/mails/order_update.blade.php new file mode 100644 index 00000000..3fa47afe --- /dev/null +++ b/themes/default/mails/order_update.blade.php @@ -0,0 +1,77 @@ +@extends('layout.mail') + +@section('content') + + + + +

+ {{ __('mail.order_update') }} +

+

+ {{ __('mail.customer_name', ['name' => $order->customer_name]) }} +

+

+ {{ __('mail.order_update_status', ['number' => $order->number]) }}: + {{ __("common.order.{$order->status}") }} + +

+ +

{{ __('shop/account.order.order_info.order_items') }}:

+ + + + + + + + + + + @foreach ($order->orderProducts as $product) + + + + + + + @endforeach + +
{{ __('product.image') }}{{ __('product.name') }}{{ __('order.product_quantity') }}{{ __('product.price') }}
{{ $product->name }}{{ $product->quantity }}{{ currency_format($product->price, $order->currency_code, $order->currency_value) }}
+ + @if ($order->orderShipments->count()) +

{{ __('order.order_shipments') }}

+ + + + + + + + + + @foreach ($order->orderShipments as $ship) + + + + + + @endforeach + +
{{ __('order.express_company') }}{{ __('order.express_number') }}{{ __('order.history_created_at') }}
{{ $ship->express_company }}{{ $ship->express_number }}{{ $ship->created_at }}
+ @endif + +
+
+

+ {{ __('mail.sincerely') }} +
+ {{ config('app.name') }} {{ __('mail.team') }} +

+
+
+ + + + +@endsection diff --git a/themes/default/mails/registration.blade.php b/themes/default/mails/registration.blade.php new file mode 100644 index 00000000..bbd57be4 --- /dev/null +++ b/themes/default/mails/registration.blade.php @@ -0,0 +1,37 @@ +@extends('layout.mail') + +@section('content') + + + + +

+ {{ __('mail.welcome_register') }} {{ config('app.name') }} +

+

+ {{ __('mail.customer_name', ['name' => $customer->name]) }} +

+

+ {{ __('mail.register_end') }} + {{ __('mail.not_oneself') }} + +

+

+ + {{ __('mail.btn_buy_now') }} + +

+
+
+

+ {{ __('mail.sincerely') }} +
+ {{ config('app.name') }} {{ __('mail.team') }} +

+
+
+ + + + +@endsection diff --git a/themes/default/page_categories/home.blade.php b/themes/default/page_categories/home.blade.php new file mode 100644 index 00000000..d20ecf69 --- /dev/null +++ b/themes/default/page_categories/home.blade.php @@ -0,0 +1,50 @@ +@extends('layout.master') +@section('body-class', 'page-categories-home') + +@section('content') +
+ {{ $breadcrumb->render() }} +
+
+
+
+ @foreach ($active_pages as $page) +
+
{{ $page->description->title }}
+

{{ $page->created_at }}

+ @if ($page->description->summary) +

{{ $page->description->summary ?? '' }}

+ @endif + +
+ + @if (!$loop->last) +
+ @endif + @endforeach +
+
+
+ + @if ($active_page_categories) +
+
+
+
{{ __('product.category') }}
+
+
+ +
+
+
+ @endif +
+
+@endsection diff --git a/themes/default/page_categories/show.blade.php b/themes/default/page_categories/show.blade.php new file mode 100644 index 00000000..3806e892 --- /dev/null +++ b/themes/default/page_categories/show.blade.php @@ -0,0 +1,70 @@ +@extends('layout.master') +@section('body-class', 'page-categories-home') +@section('title', $category->description->meta_title ?: system_setting('base.meta_title', 'BeikeShop开源好用的跨境电商系统 - + BeikeShop官网') . ' - ' . $category->description->name) +@section('keywords', $category->description->meta_keywords ?: system_setting('base.meta_keyword')) +@section('description', $category->description->meta_description ?: system_setting('base.meta_description')) + +@section('content') +
+ +
+
+
+
+

{{ $category->description->title }}

+
{{ $category->description->summary }}
+
+
+ +
+
+ @if ($category_pages->count() > 0) + @foreach ($category_pages as $page) +
+
{{ $page->description->title }}
+

{{ $page->created_at }}

+ @if ($page->description->summary) +

{{ $page->description->summary ?? '' }}

+ @endif + +
+ + @if (!$loop->last) +
+ @endif + @endforeach + @else + + @endif + + {{ $category_pages->links('shared/pagination/bootstrap-4') }} +
+
+
+ + @if ($active_page_categories) +
+
+
+
{{ __('product.category') }}
+
+
+ +
+
+
+ @endif +
+
+@endsection diff --git a/themes/default/pages/article.blade.php b/themes/default/pages/article.blade.php new file mode 100644 index 00000000..26825445 --- /dev/null +++ b/themes/default/pages/article.blade.php @@ -0,0 +1,104 @@ +@extends('layout.master') +@section('body-class', 'page-pages') +@section('title', $page->description->meta_title ?: $page->description->title) +@section('keywords', $page->description->meta_keywords) +@section('description', $page->description->meta_description) + +@push('header') + + +@endpush + +@section('content') +
+ +
+
+
+
+

{{ $page->description->title }}

+
+ {{ __('page_category.author') }}: {{ $page->author }} + {{ __('page_category.created_at') }}: {{ $page->created_at }} + {{ __('page_category.views') }}: {{ $page->views }} +
+ {!! $page_format['content'] !!} + + + @if ($products) +
+
+
{{ __('admin/product.product_relations') }}
+
+
+
+ @foreach ($products as $item) +
+ @include('shared.product', ['product' => $item]) +
+ @endforeach +
+
+
+
+
+
+
+
+ @endif +
+
+
+ + @if ($page->category) +
+
+
+
{{ __('product.category') }}
+
+
+ +
+
+
+ @endif +
+
+@endsection + +@push('add-scripts') + +@endpush \ No newline at end of file diff --git a/themes/default/pages/single.blade.php b/themes/default/pages/single.blade.php new file mode 100644 index 00000000..929f95d5 --- /dev/null +++ b/themes/default/pages/single.blade.php @@ -0,0 +1,16 @@ +@extends('layout.master') +@section('body-class', 'page-pages') +@section('title', $page['meta_title'] ?: $page['title']) +@section('keywords', $page['meta_keywords']) +@section('description', $page['meta_description']) + +@section('content') +
+ +
+
+ {!! $page_format['content'] !!} +
+
+
+@endsection diff --git a/themes/default/product.blade.php b/themes/default/product.blade.php new file mode 100644 index 00000000..e947f317 --- /dev/null +++ b/themes/default/product.blade.php @@ -0,0 +1,417 @@ +@extends('layout.master') +@section('body-class', 'page-product') +@section('title', $product['meta_title'] ?: $product['name']) +@section('keywords', $product['meta_keywords'] ?: system_setting('base.meta_keyword')) +@section('description', $product['meta_description'] ?: system_setting('base.meta_description')) + +@push('header') + + + + +@endpush + +@section('content') +
+ + +
+
+
+ @if(!is_mobile()) +
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+ +
+ @else +
+
+
+ +
+
+
+
+ @endif +
+
+ +
+
+ @hookwrapper('product.detail.name') +

{{ $product['name'] }}

+ @endhookwrapper +
+
@{{ product.price_format }}@{{ price_setting }}
+
+ @{{ product.origin_price_format }} +
+
+
+ @hookwrapper('product.detail.quantity') +
+ {{ __('product.quantity') }}: +
+ + +
+
+ @endhookwrapper + + @if ($product['brand_id']) + @hookwrapper('product.detail.brand') +
+ {{ __('product.brand') }}: + {{ $product['brand_name'] }} +
+ @endhookwrapper + @endif + + @hookwrapper('product.detail.sku') +
SKU:@{{ product.sku }}
+ @endhookwrapper + + @hookwrapper('product.detail.model') +
{{ __('shop/products.model') }}: @{{ product.model }}
+ @endhookwrapper +
+ @if (0) +
+
+ @for ($i = 0; $i < 5; $i++) + + @endfor +
+ 132 reviews +
+ @endif + + +
+
+

@{{ variable.name }}

+
+
+ + @{{ value.name }} +
+
+
+
+ + @if ($product['active']) +
+ @hook('product.detail.buy.before') +
+ +
+ + +
+
+ + + @hook('product.detail.buy.after') +
+
+ +
+ @else +
{{ __('product.has_been_inactive') }}
+ @endif +
+
+
+ +
+ +
+
+ {!! $product['description'] !!} +
+
+ + @foreach ($product['attributes'] as $group) + + + + + @foreach ($group['attributes'] as $item) + + + + + @endforeach + + @endforeach +
{{ $group['attribute_group_name'] }}
{{ $item['attribute'] }}{{ $item['attribute_value'] }}
+
+
+
+
+ + @if ($relations) +
+
+
{{ __('admin/product.product_relations') }}
+
+
+
+ @foreach ($relations as $item) +
+ @include('shared.product', ['product' => $item]) +
+ @endforeach +
+
+
+
+
+
+
+
+ @endif +@endsection + +@push('add-scripts') + +@endpush diff --git a/themes/default/search.blade.php b/themes/default/search.blade.php new file mode 100644 index 00000000..b2482c6c --- /dev/null +++ b/themes/default/search.blade.php @@ -0,0 +1,22 @@ +@extends('layout.master') +@section('body-class', 'page-categories') + +@section('content') +
+ + + +
+ @if (count($items)) + @foreach ($items as $product) +
@include('shared.product')
+ @endforeach + @else + + @endif +
+ + {{ $products->links('shared/pagination/bootstrap-4') }} +
+ +@endsection diff --git a/themes/default/shared/address-form.blade.php b/themes/default/shared/address-form.blade.php new file mode 100644 index 00000000..e61362c9 --- /dev/null +++ b/themes/default/shared/address-form.blade.php @@ -0,0 +1,197 @@ + + + \ No newline at end of file diff --git a/themes/default/shared/filter_bar_block.blade.php b/themes/default/shared/filter_bar_block.blade.php new file mode 100644 index 00000000..ad9857e8 --- /dev/null +++ b/themes/default/shared/filter_bar_block.blade.php @@ -0,0 +1,43 @@ +
+ @if (!is_mobile()) +
+ + +
+ @endif +
+
+ {{ __('common.showing_page', ['per_page' => request('per_page'), 'total' => $products->total()]) }} +
+ + + + +
+
\ No newline at end of file diff --git a/themes/default/shared/filter_sidebar_block.blade.php b/themes/default/shared/filter_sidebar_block.blade.php new file mode 100644 index 00000000..0e1eb3b4 --- /dev/null +++ b/themes/default/shared/filter_sidebar_block.blade.php @@ -0,0 +1,103 @@ +
+

{{ __('product.category') }}

+ +
+ +
+ @if ($filter_data['price']['min'] != $filter_data['price']['max']) + @hookwrapper('category.filter.sidebar.price') + @push('header') + + + @endpush + +
+
+

{{ __('product.price') }}

+
+
+
+
+
+ {{ __('common.text_form') }} + {{ currency_format($filter_data['price']['select_min'], current_currency_code()) }} +
+
+ {{ __('common.text_to') }} + {{ currency_format($filter_data['price']['select_max'], current_currency_code()) }} +
+
+ + + + +
+
+ @endhookwrapper + @endif + + @hookwrapper('category.filter.sidebar.attr') + @foreach ($filter_data['attr'] as $index => $attr) +
+
+

{{ $attr['name'] }}

+
+
    + @foreach ($attr['values'] as $value_index => $value) +
  • + +
  • + @endforeach +
+
+ @endforeach + @endhookwrapper +
+ +@push('add-scripts') + +@endpush diff --git a/themes/default/shared/form-msg.blade.php b/themes/default/shared/form-msg.blade.php new file mode 100644 index 00000000..9ab92d72 --- /dev/null +++ b/themes/default/shared/form-msg.blade.php @@ -0,0 +1,5 @@ +
+ + {{ $msg }} + +
\ No newline at end of file diff --git a/themes/default/shared/menu-mobile.blade.php b/themes/default/shared/menu-mobile.blade.php new file mode 100644 index 00000000..38419668 --- /dev/null +++ b/themes/default/shared/menu-mobile.blade.php @@ -0,0 +1,45 @@ + diff --git a/themes/default/shared/menu-pc.blade.php b/themes/default/shared/menu-pc.blade.php new file mode 100644 index 00000000..9532eebb --- /dev/null +++ b/themes/default/shared/menu-pc.blade.php @@ -0,0 +1,61 @@ + diff --git a/themes/default/shared/pagination/bootstrap-4.blade.php b/themes/default/shared/pagination/bootstrap-4.blade.php new file mode 100644 index 00000000..2ff79880 --- /dev/null +++ b/themes/default/shared/pagination/bootstrap-4.blade.php @@ -0,0 +1,43 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/themes/default/shared/pagination/default.blade.php b/themes/default/shared/pagination/default.blade.php new file mode 100644 index 00000000..0db70b56 --- /dev/null +++ b/themes/default/shared/pagination/default.blade.php @@ -0,0 +1,46 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/themes/default/shared/pagination/semantic-ui.blade.php b/themes/default/shared/pagination/semantic-ui.blade.php new file mode 100644 index 00000000..ef0dbb18 --- /dev/null +++ b/themes/default/shared/pagination/semantic-ui.blade.php @@ -0,0 +1,36 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/themes/default/shared/pagination/simple-bootstrap-4.blade.php b/themes/default/shared/pagination/simple-bootstrap-4.blade.php new file mode 100644 index 00000000..4bb49174 --- /dev/null +++ b/themes/default/shared/pagination/simple-bootstrap-4.blade.php @@ -0,0 +1,27 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/themes/default/shared/pagination/simple-default.blade.php b/themes/default/shared/pagination/simple-default.blade.php new file mode 100644 index 00000000..36bdbc18 --- /dev/null +++ b/themes/default/shared/pagination/simple-default.blade.php @@ -0,0 +1,19 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/themes/default/shared/pagination/simple-tailwind.blade.php b/themes/default/shared/pagination/simple-tailwind.blade.php new file mode 100644 index 00000000..6872cca3 --- /dev/null +++ b/themes/default/shared/pagination/simple-tailwind.blade.php @@ -0,0 +1,25 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/themes/default/shared/pagination/tailwind.blade.php b/themes/default/shared/pagination/tailwind.blade.php new file mode 100644 index 00000000..5bf323b4 --- /dev/null +++ b/themes/default/shared/pagination/tailwind.blade.php @@ -0,0 +1,106 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/themes/default/shared/product.blade.php b/themes/default/shared/product.blade.php new file mode 100644 index 00000000..eb40d04a --- /dev/null +++ b/themes/default/shared/product.blade.php @@ -0,0 +1,63 @@ +
+
+ +
+ +
+
+ @if (!request('style_list') || request('style_list') == 'grid') +
+ + +
+ @endif +
+
+
{{ $product['name_format'] }}
+
+ {{ $product['price_format'] }} + - + @if ($product['price'] != $product['origin_price'] && $product['origin_price'] > 0) + {{ $product['origin_price_format'] }} + @endif + /pieces +
+ +
+ 1 pieces + (Min Order) +
+ + @if (request('style_list') == 'list') +
+ +
+ +
+ +
+ @endif +
+
\ No newline at end of file diff --git a/themes/default/shared/quantity.blade.php b/themes/default/shared/quantity.blade.php new file mode 100644 index 00000000..26adf38d --- /dev/null +++ b/themes/default/shared/quantity.blade.php @@ -0,0 +1,7 @@ +
+ +
+ + +
+
\ No newline at end of file diff --git a/themes/default/shared/steps.blade.php b/themes/default/shared/steps.blade.php new file mode 100644 index 00000000..ae88ad92 --- /dev/null +++ b/themes/default/shared/steps.blade.php @@ -0,0 +1,18 @@ +
+
+
1
+ {{ __('shop/steps.cart') }} +
+
+
2
+ {{ __('shop/steps.checkout') }} +
+
+
3
+ {{ __('shop/steps.submitted_successfully') }} +
+
+
4
+ {{ __('shop/steps.payment') }} +
+
\ No newline at end of file