Based on the error you have an unterminated @if/if() statement somewhere in your view. While I don't see any if statements in the code you posted, they may be in a component or layout your extending so see if the stacktrace can narrow it down for you.
Mar 28, 2024
3
Level 1
ParseError PHP 8.2.12 11.0.8 syntax error, unexpected end of file, expecting "elseif" or "else" or "endif"
I am having this error, and i have cross checked my code, and i don't see anywhere i did not close a file
@extends('layouts.app')
@section('content') Create New Property
<div class="card-body">
<form method="POST" action="{{ route('property/store') }}" enctype="multipart/form-data">
@csrf
<!-- Property Location -->
<h5>Property Location</h5>
<hr>
<!-- This is the State section -->
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="state">State</x-label>
<select id="state" class="form-control" name="state" required>
<option value="">Select State</option>
<option value="Plateau">Plateau</option>
<!-- Add options for states -->
</select>
</div>
<!-- This is the local government section -->
<div class="form-group col-md-4">
<x-label for="local_government_area">Local Government Area</x-label>
<select id="local_government_area" class="form-control" name="local_government_area" required>
<option value="">Select Local Government Area</option>
<option value="Jos South">Jos South</option>
<!-- Add options for local government areas -->
</select>
</div>
<!-- This is the District section -->
<div class="form-group col-md-4">
<x-label for="district">District</x-label>
<select id="district" class="form-control" name="district" required>
<option value="">Select District</option>
<option value="Du 01">Du 01</option>
<option value="Gyel 02">Gyel 02</option>
<option value="Kuru 03">Kuru 03</option>
<option value="Vwang 04">Vwang 04</option>
<option value="Zawang 05">Zawang 05</option>
<!-- Add options for Districts -->
</select>
</div>
<!-- This is the Ward section -->
<div class="form-group col-md-4">
<x-label for="ward">Ward</x-label>
<select id="ward" class="form-control" name="ward" required>
<option value="">Select District</option>
<option value="Du 01">Du 01</option>
<option value="Gyel 02">Gyel 02</option>
<option value="Kuru 03">Kuru 03</option>
<option value="Vwang 04">Vwang 04</option>
<option value="Zawang 05">Zawang 05</option>
<!-- Add options for Wards -->
</select>
</div>
<!-- This is the Unit section -->
<div class="form-group col-md-4">
<x-label for="unit">Unit</x-label>
<select id="unit" class="form-control" name="unit">
<option value="">Select Unit</option>
<!-- Add options for Units -->
</select>
</div>
<!-- This is the Enumeration Area section -->
<div class="form-group col-md-4">
<x-label for="enumeration_area">Enumeration Area</x-label>
<select id="enumeration_area" class="form-control" name="enumeration_area">
<option value="">Select Enumeration Area</option>
<!-- Add options for Enumeration Areas -->
</select>
</div>
<!-- This is the Street Name Section-->
<div class="form-group col-md-4">
<x-label for="street_name">Street Name</x-label>
<x-input type="text" class="form-control" id="street_name" name="street_name" required>
</div>
<!-- This is the House No Section-->
<div class="form-group col-md-4">
<x-label for="house_no">House No.</x-label>
<x-input type="text" class="form-control" id="house_no" name="house_no" required>
</div>
</div>
<!-- Building Information -->
<h5>Property Information</h5>
<hr>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="building_type">Building Type</x-label>
<select id="building_type" class="form-control" name="building_type" required>
<option value="">Select Building Type</option>
<option value="Duplex">Duplex</option>
<option value="1 Storey">1 Storey</option>
<option value="2 Storey">2 Storey</option>
<option value="3 Storey">3 Storey</option>
<option value="4 Storey">4 Storey</option>
<option value="Flat">Flat</option>
<option value="Single Rooms">Single ROoms</option>
<option value="Shops">Shops</option>
<option value="Others">Others</option>
<!-- Add options for building types -->
</select>
</div>
<div class="form-group col-md-4">
<x-label for="building_purpose">Building Purpose</x-label>
<select id="building_purpose" class="form-control" name="building_purpose" required>
<option value="">Select Building Purpose</option>
<option value="commercial,">Commercial,</option>
<option value="Residential,">Residential,</option>
<option value="Rental,">Rental,</option>
<!-- Add options for building purposes -->
</select>
</div>
<div class="form-group col-md-4">
<x-label for="building_description">Building Description</x-label>
<textarea id="building_description" class="form-control" name="building_description" rows="3" placeholder="Give a Detailed Description of the House including the Paint Colors, Zinc Type, Zinc Color etc."></textarea>
</div>
<div class="form-group col-md-4">
<x-label for="estimated_sale_value">Estimated Sale Value</x-label>
<x-input type="number" id="estimated_sale_value" name="estimated_sale_value" step="0.01" placeholder="Enter estimated sale value" required>
</div>
<div class="form-group col-md-4">
<x-label for="estimated_rental_value">Estimated Rental Value</x-label>
<x-input type="number" id="estimated_rental_value" name="estimated_rental_value" step="0.01" placeholder="Enter estimated Rental value" required>
</div>
<div class="form-group col-md-4">
<x-label for="landmark">Land Mark</x-label>
<textarea id="landmark" class="form-control" name="landmark" rows="1" placeholder="Any Land Mark? E.g. Busstop, Police Station, Hospital etc."></textarea>
</div>
<div class="form-group col-md-4">
<x-label for="other_comment">Other Comments</x-label>
<textarea id="other_comment" class="form-control" name="other_comment" rows="3" placeholder="Comments"></textarea>
</div>
</div>
<!-- Owner Information -->
<h5>Owner Information</h5>
<hr>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="owner_first_name">First Name</x-label>
<x-input type="text" class="form-control" id="owner_first_name" name="owner_first_name" required>
</div>
<div class="form-group col-md-4">
<x-label for="owner_last_name">Last Name</x-label>
<x-input type="text" class="form-control" id="owner_last_name" name="owner_last_name" required>
</div>
<div class="form-group col-md-4">
<x-label for="owner_other_names">Other Names</x-label>
<x-input type="text" class="form-control" id="owner_other_names" name="owner_other_names">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="owner_gender">Gender</x-label>
<select id="owner_gender" class="form-control" name="owner_gender" required>
<option value="">Select Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
<div class="form-group col-md-4">
<x-label for="owner_date_of_birth">Date of Birth</x-label>
<x-input type="date" class="form-control" id="owner_date_of_birth" name="owner_date_of_birth" required>
</div>
<div class="form-group col-md-4">
<x-label for="owner_occupation">Occupation</x-label>
<x-input type="text" class="form-control" id="owner_occupation" name="owner_occupation" required>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="owner_phone_number">Phone Number</x-label>
<x-input type="tel" class="form-control" id="owner_phone_number" name="owner_phone_number" required>
</div>
<div class="form-group col-md-4">
<x-label for="owner_national_identification_number">National Identification Number</x-label>
<x-input type="text" class="form-control" id="owner_national_identification_number" name="owner_national_identification_number" required>
</div>
<div class="form-group col-md-4">
<x-label for="owner_email_address">Email Address</x-label>
<x-input type="email" class="form-control" id="owner_email_address" name="owner_email_address">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="owner_state_of_origin">State of Origin</x-label>
<x-input type="text" class="form-control" id="owner_state_of_origin" name="owner_state_of_origin">
</div>
<div class="form-group col-md-4">
<x-label for="owner_lga_of_origin">LGA of Origin</x-label>
<x-input type="text" class="form-control" id="owner_lga_of_origin" name="owner_lga_of_origin">
</div>
<div class="form-group col-md-4">
<x-label for="owner_marital_status">Marital Status</x-label>
<select id="owner_marital_status" class="form-control" name="owner_marital_status" required>
<option value="">Select Marital Status</option>
<option value="single">Single</option>
<option value="married">Married</option>
<option value="divorced">Divorced</option>
<option value="widowed">Widowed</option>
</select>
</div>
</div>
<!-- Next of Kin Information -->
<h5>Next of Kin Information</h5>
<hr>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="next_of_kin_first_name">First Name</x-label>
<x-input type="text" class="form-control" id="next_of_kin_first_name" name="next_of_kin_first_name" required>
</div>
<div class="form-group col-md-4">
<x-label for="next_of_kin_last_name">Last Name</x-label>
<x-input type="text" class="form-control" id="next_of_kin_last_name" name="next_of_kin_last_name" required>
</div>
<div class="form-group col-md-4">
<x-label for="next_of_kin_other_names">Other Names</x-label>
<x-input type="text" class="form-control" id="next_of_kin_other_names" name="next_of_kin_other_names">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="next_of_kin_gender">Gender</x-label>
<select id="next_of_kin_gender" class="form-control" name="next_of_kin_gender" required>
<option value="">Select Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
<div class="form-group col-md-4">
<x-label for="next_of_kin_date_of_birth">Date of Birth</x-label>
<x-input type="date" class="form-control" id="next_of_kin_date_of_birth" name="next_of_kin_date_of_birth" required>
</div>
<div class="form-group col-md-4">
<x-label for="next_of_kin_occupation">Occupation</x-label>
<x-input type="text" class="form-control" id="next_of_kin_occupation" name="next_of_kin_occupation" required>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="next_of_kin_phone_number">Phone Number</x-label>
<x-input type="tel" class="form-control" id="next_of_kin_phone_number" name="next_of_kin_phone_number" required>
</div>
<div class="form-group col-md-4">
<x-label for="next_of_kin_national_identification_number">National Identification Number</x-label>
<x-input type="text" class="form-control" id="next_of_kin_national_identification_number" name="next_of_kin_national_identification_number" required>
</div>
<div class="form-group col-md-4">
<x-label for="next_of_kin_email_address">Email Address</x-label>
<x-input type="email" class="form-control" id="next_of_kin_email_address" name="next_of_kin_email_address">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="next_of_kin_state_of_origin">State of Origin</x-label>
<x-input type="text" class="form-control" id="next_of_kin_state_of_origin" name="next_of_kin_state_of_origin">
</div>
<div class="form-group col-md-4">
<x-label for="next_of_kin_lga_of_origin">LGA of Origin</x-label>
<x-input type="text" class="form-control" id="next_of_kin_lga_of_origin" name="next_of_kin_lga_of_origin">
</div>
<div class="form-group col-md-4">
<x-label for="next_of_kin_marital_status">Marital Status</x-label>
<select id="next_of_kin_marital_status" class="form-control" name="next_of_kin_marital_status" required>
<option value="">Select Marital Status</option>
<option value="single">Single</option>
<option value="married">Married</option>
<option value="divorced">Divorced</option>
<option value="widowed">Widowed</option>
</select>
</div>
</div>
<!-- Care Taker Information -->
<h5>Care Taker Information</h5>
<hr>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="care_taker_first_name">First Name</x-label>
<x-input type="text" class="form-control" id="care_taker_first_name" name="care_taker_first_name" required>
</div>
<div class="form-group col-md-4">
<x-label for="care_taker_last_name">Last Name</x-label>
<x-input type="text" class="form-control" id="care_taker_last_name" name="care_taker_last_name" required>
</div>
<div class="form-group col-md-4">
<x-label for="care_taker_other_names">Other Names</x-label>
<x-input type="text" class="form-control" id="care_taker_other_names" name="care_taker_other_names">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="care_taker_gender">Gender</x-label>
<select id="care_taker_gender" class="form-control" name="care_taker_gender" required>
<option value="">Select Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
<div class="form-group col-md-4">
<x-label for="care_taker_date_of_birth">Date of Birth</x-label>
<x-input type="date" class="form-control" id="care_taker_date_of_birth" name="care_taker_date_of_birth" required>
</div>
<div class="form-group col-md-4">
<x-label for="care_taker_occupation">Occupation</x-label>
<x-input type="text" class="form-control" id="care_taker_occupation" name="care_taker_occupation" required>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="care_taker_phone_number">Phone Number</x-label>
<x-input type="tel" class="form-control" id="care_taker_phone_number" name="care_taker_phone_number" required>
</div>
<div class="form-group col-md-4">
<x-label for="care_taker_national_identification_number">National Identification Number</x-label>
<x-input type="text" class="form-control" id="care_taker_national_identification_number" name="care_taker_national_identification_number" required>
</div>
<div class="form-group col-md-4">
<x-label for="care_taker_email_address">Email Address</x-label>
<x-input type="email" class="form-control" id="care_taker_email_address" name="care_taker_email_address">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="care_taker_state_of_origin">State of Origin</x-label>
<x-input type="text" class="form-control" id="care_taker_state_of_origin" name="care_taker_state_of_origin">
</div>
<div class="form-group col-md-4">
<x-label for="care_taker_lga_of_origin">LGA of Origin</x-label>
<x-input type="text" class="form-control" id="care_taker_lga_of_origin" name="care_taker_lga_of_origin">
</div>
<div class="form-group col-md-4">
<x-label for="care_taker_marital_status">Marital Status</x-label>
<select id="care_taker_marital_status" class="form-control" name="care_taker_marital_status" required>
<option value="">Select Marital Status</option>
<option value="single">Single</option>
<option value="married">Married</option>
<option value="divorced">Divorced</option>
<option value="widowed">Widowed</option>
</select>
</div>
</div>
<!-- Document Uploads -->
<h5>Document Uploads</h5>
<hr>
<div class="form-row">
<div class="form-group col-md-6">
<x-label for="c_of_o">C of O</x-label>
<x-input type="file" class="form-control-file" id="c_of_o" name="c_of_o" required>
</div>
<div class="form-group col-md-6">
<x-label for="r_of_o">R of O</x-label>
<x-input type="file" class="form-control-file" id="r_of_o" name="r_of_o" required>
</div>
<div class="form-group col-md-6">
<x-label for="agreement_of_sales">Agreement of Sales</x-label>
<x-input type="file" class="form-control-file" id="agreement_of_sales" name="agreement_of_sales" required>
</div>
<div class="form-group col-md-6">
<x-label for="change_of_ownership">Change of Ownership</x-label>
<x-input type="file" class="form-control-file" id="change_of_ownership" name="change_of_ownership" required>
</div>
<div class="form-group col-md-6">
<x-label for="customary_ownership">Customary Ownership</x-label>
<x-input type="file" class="form-control-file" id="customary_ownership" name="customary_ownership" required>
</div>
<div class="form-group col-md-6">
<x-label for="other_document1">Other Document 1</x-label>
<x-input type="file" class="form-control-file" id="other_document1" name="other_document1">
</div>
<div class="form-group col-md-6">
<x-label for="other_document2">Other Document 2</x-label>
<x-input type="file" class="form-control-file" id="other_document2" name="other_document2">
</div>
<!-- Add file upload fields for other documents -->
</div>
<!-- Picture Uploads -->
<h5>Picture Uploads</h5>
<hr>
<div class="form-row">
<div class="form-group col-md-4">
<x-label for="house_front_view">House Front View</x-label>
<x-input type="file" class="form-control-file" id="house_front_view" name="house_front_view" required>
</div>
<div class="form-group col-md-4">
<x-label for="house_back_view">House Back View</x-label>
<x-input type="file" class="form-control-file" id="house_back_view" name="house_back_view" required>
</div>
<div class="form-group col-md-4">
<x-label for="house_side_view">House Side View</x-label>
<x-input type="file" class="form-control-file" id="house_side_view" name="house_side_view" required>
</div>
</div>
<x-button type="submit" class="btn btn-primary">Submit</x-button>
</form>
</div>
</div>
</div>
</div>
Please or to participate in this conversation.