@extends('layouts.rent') @section('content') @include('rent-calculator.partials.header') @include('rent-calculator.partials.errors') @if(isset($bullshit_flag))

Really?

You're calculating the relative rent shares of one person? You need more help than I can provide.

After doing some quick math, {{$people[0]}} owes 100% of the rent. That's ${{number_format($base_rent,2)}}. Pay it. And pay me a 50% fee for my high level math skills.

@else

Step Done: Result

@if(isset($high_flag))

Your rent is too high. Try living somewhere cheaper.

Seriously though. Your rent is too high for the system. Trying to do math on a number that high would break everything.

Sorry. Maybe I'll have a fix for that in version 2

@elseif(isset($nagative_flag))

Someone pays more for their share of bills than their share of rent.
You'll have to wait for version 2 to figure out how to deal with that.

Sorry.

@endif @if(isset($results))

Here's what everybody owes. I'm not an accountant. If you don't trust me, do the math yourself.

@foreach($results as $result_item)

{{$result_item['person']}} ${{number_format(($result_item['rent_share']),2)}}

@endforeach @endif @endif

Feedback

Have thoughts about this thing? Send em to me.

Like this?

Check out my company.

@stop