This commit is contained in:
2019-08-06 12:28:55 -05:00
parent 0328f969dc
commit fd9fda9f47
2 changed files with 19 additions and 19 deletions

View File

@@ -68,7 +68,7 @@ class DashboardController extends Controller
$open = SRPShip::where([
'character_id' => auth()->user()->character_id,
'approved' => 'Under Review'
])->get();
])->get()->toArray();
}
//See if we can get all of the closed and approved SRP requests
@@ -80,7 +80,7 @@ class DashboardController extends Controller
$approved = SRPShip::where([
'character_id' => auth()->user()->character_id,
'approved' => 'Approved',
])->take(10)->get();
])->take(10)->get()->toArray();
}
//See if we can get all of the closed and denied SRP requests
@@ -92,7 +92,7 @@ class DashboardController extends Controller
$denied = SRPShip::where([
'character_id' => auth()->user()->character_id,
'approved' => 'Denied',
])->take(10)->get();
])->take(10)->get()->toArray();
}
//Process all types of srp requests for the alt of the main and add to the main's page
@@ -111,7 +111,7 @@ class DashboardController extends Controller
$altOpen = SRPShip::where([
'character_id' => $alt->character_id,
'approved' => 'Under Review',
])->get();
])->get()->toArray();
//Add the alt's open requests to the open requests array
array_push($open, $altOpen);
}
@@ -125,7 +125,7 @@ class DashboardController extends Controller
$altApproved = SRPShip::where([
'character_id' => $alt->character_id,
'approved' => 'Approved',
])->take(5)->get();
])->take(5)->get()->toArray();
array_push($approved, $altApproved);
}
@@ -139,7 +139,7 @@ class DashboardController extends Controller
$altDenied = SRPShip::where([
'character_id' => $alt->character_id,
'approved' => 'Denied',
])->take(5)->get();
])->take(5)->get()->toArray();
array_push($denied, $altDenied);
}

View File

@@ -48,10 +48,10 @@
<tbody>
@foreach($open as $o)
<tr>
<td>{{ $o->fleet_commander_name }}</td>
<td>{{ $o->ship_type }}</td>
<td>{{ $o->loss_value }}</td>
<td>{{ $o->approved }}</td>
<td>{{ $o['fleet_commander_name'] }}</td>
<td>{{ $o['ship_type'] }}</td>
<td>{{ $o['loss_value'] }}</td>
<td>{{ $o['approved'] }}</td>
</tr>
@endforeach
</tbody>
@@ -86,11 +86,11 @@
<tbody>
@foreach($denied as $d)
<tr>
<td>{{ $d->fleet_commander_name }}</td>
<td>{{ $d->ship_type }}</td>
<td>{{ $d->loss_value }}</td>
<td>{{ $d->approved }}</td>
<td>{{ $d->notes }}</td>
<td>{{ $d['fleet_commander_name'] }}</td>
<td>{{ $d['ship_type'] }}</td>
<td>{{ $d['loss_value'] }}</td>
<td>{{ $d['approved'] }}</td>
<td>{{ $d['notes'] }}</td>
</tr>
@endforeach
</tbody>
@@ -124,10 +124,10 @@
<tbody>
@foreach($approved as $a)
<tr>
<td>{{ $a->fleet_commander_name }}</td>
<td>{{ $a->ship_type }}</td>
<td>{{ $a->loss_value }}</td>
<td>{{ $a->approved }}</td>
<td>{{ $a['fleet_commander_name'] }}</td>
<td>{{ $a['ship_type'] }}</td>
<td>{{ $a['loss_value'] }}</td>
<td>{{ $a['approved'] }}</td>
</tr>
@endforeach
</tbody>