<div class="flex flex-wrap"> <div class="m-8"> <table class="min-w-full mb-8"> <thead class="border-b"> <tr> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Member</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Burden Percent</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Burden Amount</th> </tr> </thead> <tbody> <% @members.each do |member| %> <tr class="even:bg-gray-50 border-b"> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= member.name %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= member.burden_percent * 100 %>%</td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= number_to_currency(member.burden_amount) %></td> </tr> <% end %> </tbody> </table> <table class="min-w-full"> <thead class="border-b"> <tr> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Member</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">For</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Amount</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Included</th> </tr> </thead> <tbody> <% @incomes.each do |income| %> <tr class="even:bg-gray-50 border-b"> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= income.member.name %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= income.description %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= number_to_currency(income.amount) %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= income.included %></td> </tr> <% end %> </tbody> </table> </div> <div class="m-8"> <table class="min-w-full"> <thead class="border-b"> <tr> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Bill</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Payment</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Period</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Montly</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">credit_card</th> <th scope="col" class="text-sm font-medium text-gray-900 px-6 py-4 text-left">Estimated</th> </tr> </thead> <tbody> <% @expenses.each do |expense| %> <tr class="even:bg-gray-50 border-b"> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= expense.description %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= number_to_currency(expense.payment) %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= expense.period %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= number_to_currency(expense.monthly) %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= expense.credit_card %></td> <td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap"><%= expense.estimated %></td> </tr> <% end %> </tbody> </table> </div> </div>