Added Shows, ActionFoto's and Attraction Status
This commit is contained in:
parent
b105bd7db7
commit
ad320963fc
30 changed files with 1190 additions and 503 deletions
|
@ -2,12 +2,8 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Order;
|
||||
use App\OrderedProject;
|
||||
use App\Project;
|
||||
use App\Status;
|
||||
use App\Utils\Numbers;
|
||||
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class HomeController extends Controller
|
||||
|
@ -34,6 +30,21 @@ class HomeController extends Controller
|
|||
]);
|
||||
}
|
||||
|
||||
public function status()
|
||||
{
|
||||
return view('status');
|
||||
}
|
||||
|
||||
public function photo() {
|
||||
$photos = DB::table('actionfotos')
|
||||
->join('attraction', 'attraction.id', '=', 'actionfotos.ride')
|
||||
->where('actionfotos.uuid', '=', Auth::user()->uuid)
|
||||
->select('actionfotos.base64')
|
||||
->get()->all();
|
||||
|
||||
return view('photo', [
|
||||
'photos' => $photos
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue