From ccabc6216d8a09d7cc4bdb88db27436bf963df96 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Tue, 11 Oct 2022 17:21:58 +0200 Subject: [PATCH] clean/indent code --- ...10_10_103617_add_available_to_products.php | 32 --- .../sable/js/components/TimeSlotPicker.vue | 197 +++++++++--------- resources/views/front/sable/js/fo/cart.js | 4 +- .../front/sable/layouts/footer.blade.php | 2 +- .../front/sable/layouts/layout.blade.php | 6 +- .../front/sable/layouts/navbar.blade.php | 3 +- .../front/sable/partials/subscribe.blade.php | 33 --- .../sable/partials/tunnel-actions.blade.php | 4 +- .../front/sable/sales/pick-slot.blade.php | 48 ++--- 9 files changed, 126 insertions(+), 203 deletions(-) delete mode 100644 database/migrations/2022_10_10_103617_add_available_to_products.php delete mode 100644 resources/views/front/sable/partials/subscribe.blade.php diff --git a/database/migrations/2022_10_10_103617_add_available_to_products.php b/database/migrations/2022_10_10_103617_add_available_to_products.php deleted file mode 100644 index 59deb146..00000000 --- a/database/migrations/2022_10_10_103617_add_available_to_products.php +++ /dev/null @@ -1,32 +0,0 @@ -boolean('availability')->nullable()->after('status'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('products', function (Blueprint $table) { - $table->dropColumn('availability'); - }); - } -} diff --git a/resources/views/front/sable/js/components/TimeSlotPicker.vue b/resources/views/front/sable/js/components/TimeSlotPicker.vue index ebbdd96a..d7b977e2 100644 --- a/resources/views/front/sable/js/components/TimeSlotPicker.vue +++ b/resources/views/front/sable/js/components/TimeSlotPicker.vue @@ -1,71 +1,70 @@ - - @yield('scripts') + + @yield('scripts') - @include('partials.cookie') + @include('partials.cookie') diff --git a/resources/views/front/sable/layouts/navbar.blade.php b/resources/views/front/sable/layouts/navbar.blade.php index 94c40fcf..71ce9ba8 100644 --- a/resources/views/front/sable/layouts/navbar.blade.php +++ b/resources/views/front/sable/layouts/navbar.blade.php @@ -35,8 +35,7 @@
- - + diff --git a/resources/views/front/sable/partials/subscribe.blade.php b/resources/views/front/sable/partials/subscribe.blade.php deleted file mode 100644 index dfe97825..00000000 --- a/resources/views/front/sable/partials/subscribe.blade.php +++ /dev/null @@ -1,33 +0,0 @@ -@section('subscribe') -
- -
-@stop - -@push('scripts') - -@endpush diff --git a/resources/views/front/sable/partials/tunnel-actions.blade.php b/resources/views/front/sable/partials/tunnel-actions.blade.php index 755f82e6..517c272b 100644 --- a/resources/views/front/sable/partials/tunnel-actions.blade.php +++ b/resources/views/front/sable/partials/tunnel-actions.blade.php @@ -1,8 +1,6 @@
@if ( $activestep < 3 ) ⟵ Continuer mes achats - @else - @endif @if ( $activestep == 1 )
@@ -12,7 +10,7 @@ @elseif ( $activestep == 2 ) @csrf - +
@endif
diff --git a/resources/views/front/sable/sales/pick-slot.blade.php b/resources/views/front/sable/sales/pick-slot.blade.php index 66d599d2..78084b58 100644 --- a/resources/views/front/sable/sales/pick-slot.blade.php +++ b/resources/views/front/sable/sales/pick-slot.blade.php @@ -10,33 +10,31 @@
@include('partials.tunnel-stepper') -
- @csrf - @if ($errors->any()) -
- @foreach ($errors->all() as $error) -
{{ $error }}
- @endforeach + + @csrf + @if ($errors->any()) +
+ @foreach ($errors->all() as $error) +
{{ $error }}
+ @endforeach +
+ @elseif (session('success')) +
+ {{ session('success') }} +
+ @endif + + +
+ +
- @elseif (session('success')) -
- {{ session('success') }} +
+
- @endif - - -
- - -
- -
- -
- +
@endsection