@extends('layouts.app') @section('content')

Checkout - {{ $product->name }}

@csrf @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if($plans->count() === 1) @php($plan = $plans->first()) @if($plan->seat_price_cents === 0) @endif

{{ $plan->name }}

@if($plan->description)

{{ $plan->description }}

@endif

${{ number_format($plan->price_usd, 2) }} {{ $plan->billing_period === 'one_time' ? 'one-time' : '/' . $plan->billing_period }}

@if($plan->seat_price_cents > 0)
Base price plus ${{ number_format($plan->seat_price_cents / 100, 2) }} per additional seat.
Total: ${{ number_format($plan->price_usd, 2) }}
@endif
@else
@if($plans->pluck('seat_price_cents')->max() > 0) @endif
@foreach($plans as $plan)
{{ $plan->name }}
${{ number_format($plan->price_usd, 2) }} {{ $plan->billing_period === 'one_time' ? 'one-time' : '/' . $plan->billing_period }}
@if($plan->seat_price_cents > 0)
Base price plus ${{ number_format($plan->seat_price_cents / 100, 2) }} per seat.
@endif @if($plan->description)
{{ $plan->description }}
@endif
@endforeach
@endif
@section('script') @endsection