@foreach($contracts as $contract)
{{ $contract['title'] }}
Type: {{ $contract['type'] }}
End Date: {{ $contract['end_date'] }}
{!! $contract['body'] !!}

@if($contract['bid_count'] > 0) @if($contract['type'] == 'Public') @foreach($contract['bids'] as $bid) @if(auth()->user()->character_id == $bid['character_id']) @else @endif @endforeach
Corporation Amount
{{ $bid['corporation_name'] }} {{ number_format($bid['bid_amount'], 2, '.', ',') }} Modify Bid Delete Bid
@else @foreach($contract['bids'] as $bid) @if(auth()->user()->character_id == $bid['character_id']) Modify Bid Delete Bid @endif @endforeach @endif
@endif

@endforeach