Mise en place du système Play
This commit is contained in:
@@ -32,7 +32,7 @@ class Contests extends Component
|
||||
flash()->success('Concours '.$contest->name.' en cours de participation');
|
||||
|
||||
// Récupération des comptes activés
|
||||
$accounts = Account::where('enable', true)->get();
|
||||
$accounts = Account::where('play', true)->get();
|
||||
|
||||
foreach ($accounts as $account) {
|
||||
ProcessTweet::dispatch($contest->id, $account->id); // Envoi du tweet pour participer
|
||||
@@ -76,4 +76,4 @@ class Contests extends Component
|
||||
'contests' => $contests
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ class Account extends Resource
|
||||
return [
|
||||
ID::make()->sortable(),
|
||||
Boolean::make('Enable'),
|
||||
Boolean::make('Play'),
|
||||
Text::make('Name'),
|
||||
Text::make('Password'),
|
||||
Text::make('Rambler Email'),
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center" style="width: 80px;">ID</th>
|
||||
<th>Play</th>
|
||||
<th>Nom</th>
|
||||
<th>Accès</th>
|
||||
<th>Webmail</th>
|
||||
@@ -30,6 +31,7 @@
|
||||
<tbody>
|
||||
@foreach($accounts as $account)
|
||||
<tr>
|
||||
<td class="text-center">@if($account->play) <span class="badge text-bg-success">Oui</span>@endif</td>
|
||||
<td class="text-center">{{$account->id}}</td>
|
||||
<td class="text-center">{{$account->name}}</td>
|
||||
<td class="text-center">
|
||||
|
||||
Reference in New Issue
Block a user