Vendor Details

Name <%= @vendor.name %>
DBA <%= @vendor.dba %>
Address <%= @vendor.address_line_1 %><%= ', ' + @vendor.address_line_2 unless @vendor.address_line_2.blank? %>
<%= "#{@vendor.city}, #{@vendor.state} #{@vendor.zip}" %>
Phone <%= @vendor.phone %>
Email <%= @vendor.email %>
TIN <%= @vendor.tin %>
Contact Name <%= @vendor.contact %>
<%= link_to 'Edit', edit_vendor_path(@vendor), class: "btn btn-dark" %> <%= link_to 'Back to List', vendors_path, class: "btn btn-secondary" %>

Linked Participants

<% if @sorted_participants.any? %> <% @sorted_participants.each do |participant| %> <% participant.service_contracts.each do |contract| %> <% end %> <% end %>
Participant Name Start Date End Date Actions
<%= "#{participant.first_name} #{participant.last_name}" %> <%= contract.start_date.strftime('%B %d, %Y') if contract.start_date %> <%= contract.end_date.strftime('%B %d, %Y') if contract.end_date %> <%= link_to participant_path(participant), class: 'btn btn-sm btn-secondary' do %> <% end %> <%= link_to edit_service_contract_path(contract), class: 'btn btn-sm btn-info' do %> <% end %>
<% else %>

No linked participants.

<% end %>