Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenebak committed Nov 1, 2024
2 parents f7a9a87 + 4305cd7 commit b872085
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion app/Livewire/Admin/Plans/CreatePlan.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\Models\Plan;
use Illuminate\Contracts\View\View;
use Jantinnerezo\LivewireAlert\LivewireAlert;
use Livewire\Attributes\Rule;
use Livewire\Attributes\Validate;
use LivewireUI\Modal\ModalComponent;

Expand Down
1 change: 0 additions & 1 deletion app/Livewire/Admin/Plans/EditPlan.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\Models\Plan;
use Illuminate\Contracts\View\View;
use Jantinnerezo\LivewireAlert\LivewireAlert;
use Livewire\Attributes\Rule;
use Livewire\Attributes\Validate;
use LivewireUI\Modal\ModalComponent;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('plans', function (Blueprint $table) {
$table->string('features')->nullable();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('plans', function (Blueprint $table) {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/icon/check.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true" {{$attributes->merge(['class' => 'h-6 w-6 text-green-500'])}}>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true" {{ $attributes->merge(['class' => 'h-6 w-6 text-green-500']) }}>
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path>
</svg>
2 changes: 1 addition & 1 deletion resources/views/components/icon/cross.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" {{$attributes->merge(['class' => 'h-6 w-6 text-stone-500'])}}>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" {{ $attributes->merge(['class' => 'h-6 w-6 text-stone-500']) }}>
<path d="M18 6 6 18"/>
<path d="m6 6 12 12"/>
</svg>
4 changes: 2 additions & 2 deletions resources/views/components/plans/card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
</div>
<div class="flex-1 flex flex-col justify-between px-6 pt-6 pb-8 bg-gray-50 space-y-6 sm:p-10 sm:pt-6">
<ul role="list" class="space-y-4">
@foreach($plan->featuresList as $feature)
@foreach ($plan->featuresList as $feature)
<li class="flex items-start">
<div class="flex-shrink-0">
@if($feature['included'])
@if ($feature['included'])
<x-icon.check/>
@else
<x-icon.cross/>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/subscriptions/plans.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<x-h2>Available Subscriptions Plans</x-h2>
<x-h3>Select a plan to continue</x-h3>

<div class="max-w-md mx-auto space-y-4 lg:max-w-7xl lg:grid lg:grid-cols-2 lg:gap-6 lg:space-y-0">
<div class="max-w-md mx-auto space-y-4 lg:max-w-5xl lg:grid lg:grid-cols-2 lg:gap-10 lg:space-y-0">
@foreach($plans as $plan)
<x-plans.card :plan="$plan" />
@endforeach
Expand Down

0 comments on commit b872085

Please sign in to comment.