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