

<?php $__env->startSection('title', 'Welcome Page'); ?>

<?php $__env->startSection('frontend_app'); ?>
 <div class="bg-white p-8 rounded-2xl shadow-2xl w-full max-w-2xl mx-auto mt-10">
  <h2 class="text-4xl font-bold text-gray-800 mb-2 text-center">Contact Us</h2>
  <p class="text-gray-500 text-center mb-8">We’d love to hear from you. Fill out the form and we’ll get back to you shortly.</p>

  <?php if(session('success')): ?>
    <div class="bg-green-100 text-green-700 p-3 rounded mb-4">
        <?php echo e(session('success')); ?>

    </div>
<?php endif; ?>
  <form action="<?php echo e(route('contact.store')); ?>" method="POST" class="space-y-6">
    <!-- Name -->
        <?php echo csrf_field(); ?>
    <div>
      <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Full Name</label>
      <input type="text" id="name" name="name" placeholder="John Doe"
        class="w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition" required>
    </div>

    <!-- Email -->
    <div>
      <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label>
      <input type="email" id="email" name="email" placeholder="john@example.com"
        class="w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition" required>
    </div>

    <!-- Phone Number -->
    <div>
      <label for="number" class="block text-sm font-medium text-gray-700 mb-1">Phone Number</label>
      <input type="tel" id="number" name="number" placeholder="+91 9876543210"
        class="w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition">
    </div>

    <!-- Inquiry Type -->
    <div>
      <label for="inquiry_type" class="block text-sm font-medium text-gray-700 mb-1">Purpose</label>
      <select id="inquiry_type" name="purpose"
        class="w-full px-4 py-3 border border-gray-300 bg-white rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition" required>
        <option value="">Select an option</option>
        <option value="buy">I want to Buy</option>
        <option value="lease">I want to Lease</option>
        <option value="rent">I want to Rent</option>
      </select>
    </div>

    <!-- Message -->
    <div>
      <label for="message" class="block text-sm font-medium text-gray-700 mb-1">Your Message</label>
      <textarea id="message" name="message" rows="5" placeholder="Type your message here..."
        class="w-full px-4 py-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 resize-y transition" required></textarea>
    </div>

    <!-- Submit -->
    <div>
      <button type="submit"
        class="w-full bg-blue-600 text-white py-3 px-6 rounded-lg font-semibold hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition duration-300 shadow-lg">
        Send Message
      </button>
    </div>
  </form>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Sw_arif\realState\resources\views/frontend/page/contact.blade.php ENDPATH**/ ?>