<% begin %>
<%= render "layouts/header" %>
<%= render "layouts/sidebar" %>
Venue Lead List
<%= render "layouts/breadcrumbs" %>
<% if flash[:error] %>
× <%= flash[:error] %>
<% end %>
<%= form_tag({:action=>'index'},:multipart=>true,:id=>'myForms') do %>

<% if @myAddAld %> <%end%>
<%end%>

Open

<%= @open_count %>

Mild

<%= @mild_count.present? ? @mild_count : 0 %>

Warm

<%= @warm_count.present? ? @warm_count : 0 %>

Hot

<%= @hot_count.present? ? @hot_count : 0 %>

Confirmed

<%= @closed_count.present? ? @closed_count : 0 %>

Dead <%= @dead_count.present? ? @dead_count : 0 %>

Waste <%= @waste_count.present? ? @waste_count : 0 %>

<% pagestart = params[:page].present? ? params[:page].to_i : 1 %> <% i = pagestart <= 1 ? 1 : ((pagestart - 1) * 10) + 1 %> <% if @information_list && @information_list.length>0 %> <% @information_list.each do |information| functiontype= "" venuename = "" functiobj = get_venue_details(information.fis_compcode,information.fis_entryno) if functiobj functiontype=functiobj.fisd_function_type datetype = functiobj.fisd_function_date datetime = functiobj.fisd_function_timings venueid = functiobj.fisd_venue_id venueobj = get_venue1_name(venueid) if venueobj venuename=venueobj.vnu_name end venuloc = functiobj.fisd_location_id address1="" address1obj= get_location1_name(venuloc) if address1obj address1 = address1obj.vloc_locname end decorationlumpsum = functiobj.fisd_decoration_lumpsum decorationremarks = functiobj.fisd_decoration_remarks entertainmentlumpsum = functiobj.fisd_entertainment_lumpsum entertainmentremarks = functiobj.fisd_entertainment_remarks paxno = functiobj.fisd_pax_no end funcnam = "" funcobj = get_function_type_name(functiontype) if funcobj funcnam = funcobj.func_type end priority_class = case information.fis_priority when 'Silver' 'badge-silver' when 'Gold' 'badge-gold' when 'Platinum' 'badge-platinum' when 'Diamond' 'badge-diamond' else '' end username= "" userobj = user_detail(information.fis_entryby) if userobj username = userobj.firstname end %> <% i += 1 %> <% end %> <% end %>
Action Current Assignee Guest Details Function Details Decoration Venue Follow-up Details
<% if @parent_entrynos.include?(information.fis_entryno) %> P<%end%> <%=username%> <%=information.fis_guest_name%>
<%= information.fis_client_mobile %>
<%=funcnam%>
<%=formatted_date(datetype)%>
<%=datetime%>
<%=information.fis_priority%>
<%=decorationlumpsum%>
<%=decorationremarks%>
<%=venuename%>
<%=paxno%>
<%=information.fis_total_amt%>
<% latest_followup = get_latest_followup(information.id, 'V') %> <% if latest_followup.present? %> Follow-up on <%= formatted_date(latest_followup.FLLW_Next_Date) %> at <%= format_time(latest_followup.FLLW_Next_Time) %>
with remarks: <%= latest_followup.FLLW_Next_Remarks.presence || "No remarks" %>. Status: <%= latest_followup.FLLW_Status %>. <% if latest_followup.present? && latest_followup.FLLW_Next_Remarks != 'Auto-generated follow-up'%> ')"> <% end %> <% else %> No Follow-up Details. <% end %>
<%= will_paginate(@information_list)%>
<% message = "" rescue ActiveRecord::RecordNotFound => e # Handle the specific exception when the record is not found message = "Record not found #{e.message}"# isFlags = false rescue ActiveRecord::StatementInvalid => e # Handle SQL syntax errors or invalid queries message = "Unknown error #{e.message}" # isFlags = false rescue StandardError => e # Handle any other errors message = "An error occurred #{e.message}" # isFlags = false end %> <%=message%>