<!-- Title Variables -->
<% phc_title "Member Listings Manager" %>
<% phc_title_tagline "Listing Index for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>

<!-- Page Header -->
<div class="page-bar">
	<!-- Bread Crumb -->
	<ul class="page-breadcrumb">
		<li><%= link_to "Dashboard", modules_dashboards_index_path %><i class="fa fa-circle"></i></li>
		<li><%= link_to "Member Profile List", member_profiles_path %><i class="fa fa-circle"></i></li>
		<li class="active"><%= yield(:phc_title_tagline) %></li>
	</ul>
	<div class="page-toolbar">
	</div>
</div>
<h1 class="page-title">
	<%= yield(:phc_title) %>
	<small><%= yield(:phc_title_tagline) %></small>
</h1>

<!-- Page Content -->
<div class="row">
	<div class="col-lg-12">

		<div class="portlet light">

			<div class="portlet-title">
				<div class="caption">
					<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
				</div>
				<div class="actions">
					<%= link_to new_member_profile_listing_path, class: "btn blue-chambray" do %>
						<i class="fa fa-plus"></i> Add a Listing for <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %>
					<% end %>
				</div>
			</div>

			<div class="portlet-body">
				<div class="table-responsive">
					<table class="table table-striped table-bordered table-hover table-header-fixed">

						<thead class="thead-inverse">
							<tr>
								<th>Company Name</th>
								<th>Conact Name</th>
								<th>City</th>
								<th>Country</th>
								<th>Listing Phone</th>
								<th>Listing Email</th>
								<th>Listing Website</th>
							</tr>
						</thead>

						<tbody>
							<% @member_listings.each do |member_listing| %>
								<tr>
									<td class="highlight"><%= link_to member_listing.mbcompanyname, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbcontactname, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbcity, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbcountry, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbphone, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbcontactemail, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbwebsite, member_profile_listing_path(member_listing.profile, member_listing) %></td>
								</tr>
							<% end %>
						</tbody>

					</table>
				</div>
			</div>
		</div>

	</div>
</div>