@extends('layouts/blankLayout') @section('title', 'Guest Payment') @section('page-style') @endsection @section('content')

Welcome to {{ $community->name }}! 👋

Powered by {{config('variables.templateName')}}.

Please fill the details and make payment.

@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif @if($errors->any())
@foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
    @endif {!! Form::open(['url' => "/guest-form/$community->id", 'class' => 'p-4 progress-form', 'id' => 'progress-form', 'lang' => 'en', 'files' => true]) !!} @csrf
    Personal Information
    {!! Form::label('name', 'Full Name', ['class' => 'form-label']) !!} {!! Form::text('name', $guest->name, ['class' => 'form-control', 'id' => 'name', 'placeholder' => 'John Bell', 'required']) !!}
    {!! Form::label('email', 'Email Address', ['class' => 'form-label']) !!} {!! Form::email('email', $guest->email, ['class' => 'form-control', 'id' => 'email', 'placeholder' => 'abc@xyz.com', 'required']) !!}
    {!! Form::label('phone_number', 'Phone Number', ['class' => 'form-label']) !!} {!! Form::tel('phone_number', $guest->phone_number, ['class' => 'form-control', 'id' => 'phone_number', 'placeholder' => '1231231231', 'required']) !!}
    {!! Form::label('vehicle_plate_no', 'Vehicle Plate No', ['class' => 'form-label']) !!} {!! Form::text('vehicle_plate_no', $guest->vehicle_plate_no, ['class' => 'form-control', 'id' => 'vehicle_plate_no', 'required']) !!}
    {!! Form::label('parking_in', 'Vehicle In Time', ['class' => 'form-label']) !!} {!! Form::input('datetime-local','parking_in', $guest->parking_in, ['class' => 'form-control', 'id' => 'parking_in', 'required']) !!}
    {!! Form::label('parking_hour', 'Parking Hour', ['class' => 'form-label']) !!} {!! Form::select('parking_hour', range(1, 100), 1, ['class' => 'form-control', 'id' => 'parking_hour', 'readonly', 'required']) !!}
    {!! Form::label('parking_out', 'Vehicle Out Time', ['class' => 'form-label']) !!} {!! Form::input('datetime-local','parking_out', now()->addHour()->format('Y-m-d\TH:i'), ['class' => 'form-control', 'id' => 'parking_out', 'onchange'=>'getHoursBetween()', 'required']) !!}
    {!! Form::label('amount', 'Amount in ($)', ['class' => 'form-label']) !!}
    $ {!! Form::number('amount', $community->guest_fees, ['class' => 'form-control', 'id' => 'amount', 'readonly', 'min' => '0.01', 'step'=>'0.01', 'required']) !!}
    {!! Form::button('Make Payment', ['type' => 'submit', 'class' => 'btn btn-primary d-grid w-100']) !!}
    {!! Form::close() !!}
    auth-tree triangle-bg auth-tree
    @endsection