@extends('layouts.app', ['title' => $page->exists ? 'Edit checkout page' : 'New checkout page']) @section('content')

{{ $page->exists ? $page->name : 'New checkout page' }}

@if ($page->exists) Open page@endif
@if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif @if ($products->isEmpty())
Add a product first under Products.
@else
@csrf @if ($page->exists) @method('PUT') @endif
Extra questions

Name, email, phone and state (for GST) are always asked.

@foreach (old('fields', $page->fields ?? []) as $i => $f)
@endforeach
If it is not connected, the other connected gateway is used.
is_published))>
@if ($page->exists)
@csrf @method('DELETE')
@endif @endif @endsection @push('scripts') @endpush