@extends('user.master') @section('title', 'Car Inquiry') @section('content')

Car Inquiry

Home > Car Inquiry

Car Details

{{ $car->title }}
{{ $car->title ?? ($car->brand->brand_name ?? '') . ' ' . ($car->carModel->model_name ?? '') . ' ' . ($car->year ?? '') }}
@if($car->price)

₹{{ number_format($car->price, 0) }}

@endif @if($car->description)
{!! Str::limit(strip_tags($car->description), 150) !!}
@endif

Inquiry Form

Fill out the form below to inquire about this car. We'll get back to you as soon as possible.

@if(session('success')) @endif @if($errors->any()) @endif {!! Form::open(['route' => ['user.car-inquiry.store', $car->id], 'method' => 'POST', 'id' => 'inquiryForm']) !!}
{!! Form::label('name', 'Full Name', ['class' => 'form-label']) !!} * {!! Form::text('name', old('name'), [ 'class' => 'form-control' . ($errors->has('name') ? ' is-invalid' : ''), 'id' => 'name', 'required' => true, 'placeholder' => 'Enter your full name', ]) !!} @error('name')
{{ $message }}
@enderror
{!! Form::label('email', 'Email Address', ['class' => 'form-label']) !!} * {!! Form::email('email', old('email'), [ 'class' => 'form-control' . ($errors->has('email') ? ' is-invalid' : ''), 'id' => 'email', 'required' => true, 'placeholder' => 'Enter your email', ]) !!} @error('email')
{{ $message }}
@enderror
{!! Form::label('phone', 'Phone Number', ['class' => 'form-label']) !!} {!! Form::text('phone', old('phone'), [ 'class' => 'form-control' . ($errors->has('phone') ? ' is-invalid' : ''), 'id' => 'phone', 'placeholder' => 'Enter your phone number', ]) !!} @error('phone')
{{ $message }}
@enderror
{!! Form::label('message', 'Message / Remarks', ['class' => 'form-label']) !!} {!! Form::textarea('message', old('message'), [ 'class' => 'form-control' . ($errors->has('message') ? ' is-invalid' : ''), 'id' => 'message', 'rows' => 5, 'placeholder' => 'Enter your message or any specific questions about this car...', ]) !!} @error('message')
{{ $message }}
@enderror
Cancel {!! Form::submit('Submit Inquiry', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endsection @section('css') @endsection