From 9f4841b58a8aa8c3e32ab86d7b61bab1c02cd6c9 Mon Sep 17 00:00:00 2001
From: Roene Verbeek <85165259+Roene-JustBetter@users.noreply.github.com>
Date: Wed, 13 Mar 2024 11:59:04 +0100
Subject: [PATCH] Removed template / reduced overrides (#16)
---
resources/views/checkout/overview.blade.php | 37 -------------
.../partials/address-cards-popup.blade.php | 21 +------
.../checkout/partials/address-cards.blade.php | 41 --------------
.../partials/buttons/address.blade.php | 8 +++
.../partials/buttons/new-address.blade.php | 4 ++
.../views/checkout/partials/layout.blade.php | 23 ++++++++
.../partials/sections/address.blade.php | 21 -------
.../partials/sections/login.blade.php | 55 -------------------
.../sections/login/logged-out.blade.php | 31 +++++++++++
.../payment/payment-methods.blade.php | 1 +
.../partials/sections/shipping.blade.php | 26 +--------
.../partials/shipping/methods.blade.php | 25 +++++++++
.../checkout/steps/credentials.blade.php | 9 ++-
.../views/checkout/steps/payment.blade.php | 11 +---
.../views/components/input/radio.blade.php | 2 +-
15 files changed, 104 insertions(+), 211 deletions(-)
delete mode 100644 resources/views/checkout/overview.blade.php
delete mode 100644 resources/views/checkout/partials/address-cards.blade.php
create mode 100644 resources/views/checkout/partials/buttons/address.blade.php
create mode 100644 resources/views/checkout/partials/buttons/new-address.blade.php
create mode 100644 resources/views/checkout/partials/layout.blade.php
delete mode 100644 resources/views/checkout/partials/sections/address.blade.php
delete mode 100644 resources/views/checkout/partials/sections/login.blade.php
create mode 100644 resources/views/checkout/partials/sections/login/logged-out.blade.php
create mode 100644 resources/views/checkout/partials/shipping/methods.blade.php
diff --git a/resources/views/checkout/overview.blade.php b/resources/views/checkout/overview.blade.php
deleted file mode 100644
index 2f20da5..0000000
--- a/resources/views/checkout/overview.blade.php
+++ /dev/null
@@ -1,37 +0,0 @@
-@extends('rapidez::layouts.app')
-
-@section('title', __('Checkout'))
-
-@section('robots', 'NOINDEX,NOFOLLOW')
-
-@section('content')
-
-
-
-
-
-
- @include('rapidez-ct::checkout.partials.header')
-
-
-
- @include('rapidez-ct::checkout.steps.credentials')
-
-
-
- @include('rapidez-ct::checkout.steps.payment')
-
-
-
- @include('rapidez-ct::checkout.partials.sidebar.sidebar')
-
-
-
-
-
- @include('rapidez-ct::checkout.steps.success')
-
-
-
-
-@endsection
diff --git a/resources/views/checkout/partials/address-cards-popup.blade.php b/resources/views/checkout/partials/address-cards-popup.blade.php
index f6a3c06..14a9bcb 100644
--- a/resources/views/checkout/partials/address-cards-popup.blade.php
+++ b/resources/views/checkout/partials/address-cards-popup.blade.php
@@ -6,26 +6,7 @@
-
-
-
-
-
- @lang('Select as shipping')
-
-
- @lang('Select as billing')
-
-
-
-
+ @include('rapidez-ct::checkout.partials.address-card')
diff --git a/resources/views/checkout/partials/address-cards.blade.php b/resources/views/checkout/partials/address-cards.blade.php
deleted file mode 100644
index 328febd..0000000
--- a/resources/views/checkout/partials/address-cards.blade.php
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
- @lang('Edit')
-
-
-
- +
- @lang('Add new address')
-
-
-
-
-
- @lang('Edit')
-
-
-
- +
- @lang('Select an address')
-
-
-
-
-
-
- @lang('Edit')
-
-
-
- +
- @lang('Select an address')
-
-
-
-
-
-
-
-@include('rapidez-ct::checkout.partials.address-cards-popup')
diff --git a/resources/views/checkout/partials/buttons/address.blade.php b/resources/views/checkout/partials/buttons/address.blade.php
new file mode 100644
index 0000000..1d15b78
--- /dev/null
+++ b/resources/views/checkout/partials/buttons/address.blade.php
@@ -0,0 +1,8 @@
+
+
+ @lang('Use a new address')
+
+
+ @lang('My addresses')
+
+
\ No newline at end of file
diff --git a/resources/views/checkout/partials/buttons/new-address.blade.php b/resources/views/checkout/partials/buttons/new-address.blade.php
new file mode 100644
index 0000000..48f852e
--- /dev/null
+++ b/resources/views/checkout/partials/buttons/new-address.blade.php
@@ -0,0 +1,4 @@
+
+ +
+ @lang('Add new address')
+
\ No newline at end of file
diff --git a/resources/views/checkout/partials/layout.blade.php b/resources/views/checkout/partials/layout.blade.php
new file mode 100644
index 0000000..600fb34
--- /dev/null
+++ b/resources/views/checkout/partials/layout.blade.php
@@ -0,0 +1,23 @@
+
+
+
+ @include('rapidez-ct::checkout.partials.header')
+
+
+
+ @include('rapidez-ct::checkout.steps.credentials')
+
+
+
+ @include('rapidez-ct::checkout.steps.payment')
+
+
+
+ @include('rapidez-ct::checkout.partials.sidebar.sidebar')
+
+
+
+
+
+ @include('rapidez-ct::checkout.steps.success')
+
\ No newline at end of file
diff --git a/resources/views/checkout/partials/sections/address.blade.php b/resources/views/checkout/partials/sections/address.blade.php
deleted file mode 100644
index 713e138..0000000
--- a/resources/views/checkout/partials/sections/address.blade.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
- @include('rapidez-ct::checkout.partials.address-cards')
-
-
- @lang('Use a new address')
-
-
- @lang('My addresses')
-
-
-
-
-
- @include('rapidez-ct::checkout.partials.shipping-billing-fields', ['type' => 'shipping'])
-
-
- @include('rapidez-ct::checkout.partials.shipping-billing-fields', ['type' => 'billing'])
-
-
-
diff --git a/resources/views/checkout/partials/sections/login.blade.php b/resources/views/checkout/partials/sections/login.blade.php
deleted file mode 100644
index 5e2d5e5..0000000
--- a/resources/views/checkout/partials/sections/login.blade.php
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
-
-
- @lang('You already have an account with this e-mail address. Please log in to continue.')
-
-
- @lang('We will send your order confirmation to this e-mail address. We will also check if you already have an account so you can checkout more efficiently.')
-
-
-
- @lang('Login')
-
-
-
-
-
-
-
-
-
-
@lang('Welcome back') @{{ $root.user?.firstname }}!
-
- @lang('Is this not your account?')
- @lang('Log out')
- @lang('and use a different e-mail address.')
-
-
-
-
-
-
diff --git a/resources/views/checkout/partials/sections/login/logged-out.blade.php b/resources/views/checkout/partials/sections/login/logged-out.blade.php
new file mode 100644
index 0000000..bc78f45
--- /dev/null
+++ b/resources/views/checkout/partials/sections/login/logged-out.blade.php
@@ -0,0 +1,31 @@
+
+
+
+
+
+ @lang('You already have an account with this e-mail address. Please log in to continue.')
+
+
+ @lang('We will send your order confirmation to this e-mail address. We will also check if you already have an account so you can checkout more efficiently.')
+
+
+ @lang('Login')
+
\ No newline at end of file
diff --git a/resources/views/checkout/partials/sections/payment/payment-methods.blade.php b/resources/views/checkout/partials/sections/payment/payment-methods.blade.php
index 258a0bf..b19b483 100644
--- a/resources/views/checkout/partials/sections/payment/payment-methods.blade.php
+++ b/resources/views/checkout/partials/sections/payment/payment-methods.blade.php
@@ -1,5 +1,6 @@
-
-
-
- @{{ method.carrier_title }}
- @{{ method.method_title }}
-
-
-
-
-
-
+ @include('rapidez-ct::checkout.partials.shipping.methods')
diff --git a/resources/views/checkout/partials/shipping/methods.blade.php b/resources/views/checkout/partials/shipping/methods.blade.php
new file mode 100644
index 0000000..25d2f53
--- /dev/null
+++ b/resources/views/checkout/partials/shipping/methods.blade.php
@@ -0,0 +1,25 @@
+
+
+
+ @{{ method.carrier_title }}
+ @{{ method.method_title }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/checkout/steps/credentials.blade.php b/resources/views/checkout/steps/credentials.blade.php
index fedaf1d..4ca75ee 100644
--- a/resources/views/checkout/steps/credentials.blade.php
+++ b/resources/views/checkout/steps/credentials.blade.php
@@ -1,4 +1,4 @@
-
+
@lang('Credentials')
@@ -6,14 +6,17 @@
@include('rapidez-ct::checkout.partials.sections.login')
@include('rapidez-ct::checkout.partials.sections.address')
+ @include('rapidez-ct::checkout.partials.sections.newsletter')
@include('rapidez-ct::checkout.partials.sections.shipping')
+
-
+
+
@lang('Continue')
-
\ No newline at end of file
+
diff --git a/resources/views/checkout/steps/payment.blade.php b/resources/views/checkout/steps/payment.blade.php
index aed198c..342b81b 100644
--- a/resources/views/checkout/steps/payment.blade.php
+++ b/resources/views/checkout/steps/payment.blade.php
@@ -1,4 +1,4 @@
-
+
@lang('Payment')
@@ -10,13 +10,8 @@
-
+
+
@lang('Place order')
diff --git a/resources/views/components/input/radio.blade.php b/resources/views/components/input/radio.blade.php
index 71e9b9d..905ddbd 100644
--- a/resources/views/components/input/radio.blade.php
+++ b/resources/views/components/input/radio.blade.php
@@ -1,4 +1,4 @@
-only('class')->class('relative flex w-full cursor-pointer items-center justify-start gap-x-3 rounded-xl px-5 sm:px-7 py-7 text-ct-neutral') }}>
+only('class')->class('relative flex w-full cursor-pointer items-center justify-start gap-x-3 rounded-xl px-5 sm:px-7 py-4 text-ct-neutral') }}>
except('class') }} class="peer h-3 w-3 border-none text-ct-primary transition checked:bg-none focus:ring-0 focus:ring-offset-0" />