Loading app/Http/Controllers/DiversBySession.php 0 → 100644 +32 −0 Original line number Diff line number Diff line <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Illuminate\View\View; class DiversBySession extends Controller { public function getDiversBySession($ds_code): View { $parametre = $ds_code; $request = User::selectRaw('US_NAME, US_FIRST_NAME') ->join('CAR_REGISTRATION','CAR_REGISTRATION.US_ID', '=', 'CAR_USER.US_ID') ->where('DS_CODE', $ds_code) ->get(); return view('diversonesession', ['datas' => $request, 'parametre' => $parametre]); } public function getAllSessions(): View { $sessions = User:: join('CAR_REGISTRATION', 'CAR_REGISTRATION.US_ID', '=', 'CAR_USER.US_ID') ->get(); return view('diversinsessions', compact('sessions')); } } app/Models/DivingSignUpModel.php +4 −0 Original line number Diff line number Diff line Loading @@ -8,7 +8,11 @@ class DivingSignUpModel extends Model { protected $table = 'CAR_REGISTRATION'; <<<<<<< HEAD protected $primaryKey = ['us_id', 'ds_code']; ======= protected $primaryKey = ['US_ID', 'DS_CODE']; >>>>>>> diversbysession protected $keyType = ['int', 'string']; protected $fillable = ['US_ID', 'DS_CODE', 'REG_ACTIVE']; use HasFactory; Loading public/images/logo-cn.png 0 → 100644 +6.46 KiB Loading image diff... resources/img/logo.png→public/images/logo.png (48.6 KiB) File moved. View file resources/img/logo_allonge.png→public/images/logo_allonge.png (34.8 KiB) File moved. View file Loading
app/Http/Controllers/DiversBySession.php 0 → 100644 +32 −0 Original line number Diff line number Diff line <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Illuminate\View\View; class DiversBySession extends Controller { public function getDiversBySession($ds_code): View { $parametre = $ds_code; $request = User::selectRaw('US_NAME, US_FIRST_NAME') ->join('CAR_REGISTRATION','CAR_REGISTRATION.US_ID', '=', 'CAR_USER.US_ID') ->where('DS_CODE', $ds_code) ->get(); return view('diversonesession', ['datas' => $request, 'parametre' => $parametre]); } public function getAllSessions(): View { $sessions = User:: join('CAR_REGISTRATION', 'CAR_REGISTRATION.US_ID', '=', 'CAR_USER.US_ID') ->get(); return view('diversinsessions', compact('sessions')); } }
app/Models/DivingSignUpModel.php +4 −0 Original line number Diff line number Diff line Loading @@ -8,7 +8,11 @@ class DivingSignUpModel extends Model { protected $table = 'CAR_REGISTRATION'; <<<<<<< HEAD protected $primaryKey = ['us_id', 'ds_code']; ======= protected $primaryKey = ['US_ID', 'DS_CODE']; >>>>>>> diversbysession protected $keyType = ['int', 'string']; protected $fillable = ['US_ID', 'DS_CODE', 'REG_ACTIVE']; use HasFactory; Loading