title = "Edit Booking" url = "/booking/:id/edit/2" layout = "Dashboard" is_hidden = 0 [session] security = "user" allowedUserGroups[] = "admin" allowedUserGroups[] = "supplier" redirect = "dashboard/login" == vendor; $this['bookings'] = Bookings::where('id', $this->param('id'))->first(); $this['vendors'] = Vendor::where('id', $user->vendor)->first(); $this['tickets'] = Ticket::orderBy('created_at', 'desc')->where('vendor_id', $user->vendor)->where('id', $ticket_id)->first(); $this['allocations'] = Allocation::where('vendor_id', $user->vendor)->get(); } $this['ticket'] = Ticket::make(); $this['allocation'] = Allocation::make(); } ?> ==