@extends('layouts.admin') @section('title', 'Edit Quotation') @push('styles') @endpush @section('content') @if ($errors->any())
@endif
@csrf @method('PUT')
Stay Details
Available Limited Full Calendar colours use the first room type
Room and Package
@php $defaultRooms = collect($quotation->rooms ?? [])->flatMap(function ($line) { if (isset($line['quantity']) && ! isset($line['adults']) && empty($line['room_id']) && empty($line['package_id'])) { $qty = max(1, (int) ($line['quantity'] ?? 1)); return collect(range(1, $qty))->map(fn () => [ 'room_type_id' => $line['room_type_id'] ?? '', 'room_id' => '', 'package_id' => '', 'adults' => 2, 'children' => 0, ]); } return [[ 'room_type_id' => $line['room_type_id'] ?? '', 'room_id' => $line['room_id'] ?? '', 'package_id' => $line['package_id'] ?? '', 'adults' => $line['adults'] ?? 2, 'children' => $line['children'] ?? 0, ]]; })->values()->all(); if ($defaultRooms === []) { $defaultRooms = [['room_type_id' => '', 'room_id' => '', 'package_id' => '', 'adults' => 2, 'children' => 0]]; } $oldRooms = old('rooms', $defaultRooms); @endphp @foreach($oldRooms as $i => $line)
Room {{ $i + 1 }}
Select type and dates to load rooms.
@endforeach
Quotation Name
Total Price
Select dates and rooms to calculate
—
—
Subtotal—
Discount—
Tax—
Service charge—
Total—
    Cancel
    Room Type Availability
    Loading availability…
    @endsection @push('scripts') @endpush