Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:laravelcm/laravel.cm into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed May 8, 2023
2 parents 3af16fe + 827e112 commit 3f4045e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
10 changes: 8 additions & 2 deletions app/Http/Controllers/NotchPayCallBackController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace App\Http\Controllers;

use App\Enums\TransactionStatus;
use App\Models\Transaction;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
Expand All @@ -17,9 +18,14 @@ public function __invoke(Request $request): RedirectResponse
->firstOrFail();
$transaction->update(['status' => $request->get('status')]);

// @ToDO Envoie de mail de notification de remerciement pour le sponsoring si l'utilisateur est dans la base de données
if ($request->get('status') === TransactionStatus::CANCELED->value) {
session()->flash('error', __('Votre paiement a été annulé veuillez relancer si vous souhaitez soutenir Laravel Cameroun, Merci.'));
} else {
// @ToDO Envoie de mail de notification de remerciement pour le sponsoring si l'utilisateur est dans la base de données
// @ToDo Envoie de la notification dans le channel de soumission pour un nouveau paiement
session()->flash('status', __('Votre paiement a été pris en compte merci de soutenir Laravel Cameroun.'));
}

session()->flash('status', __('Votre paiement a été pris en compte merci de soutenir Laravel Cameroun.'));

return redirect(route('sponsors'));
}
Expand Down
2 changes: 1 addition & 1 deletion public/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js?id=0953d0b23f555fd811dda52086298222",
"/css/app.css": "/css/app.css?id=cc2b9dcde4d0597c340f9d8233546331"
"/css/app.css": "/css/app.css?id=8d5c4c1a62a59a2ffc28ea3c57562b38"
}
4 changes: 2 additions & 2 deletions resources/views/livewire/modals/anonymous-sponsors.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</p>
<div class="mt-3 grid gap-4 lg:grid-cols-2 lg:gap-6 lg:mt-5">
<div>
<x-label for="name">{{ __('Votre nom') }}</x-label>
<x-label for="name">{{ __('Nom complet') }}</x-label>
<x-input container-class="mt-1" name="name" id="name" wire:model="name" />
</div>
<div>
<x-label for="email">{{ __('Votre E-mail') }}</x-label>
<x-label for="email">{{ __('Adresse E-mail') }}</x-label>
<x-email container-class="mt-1" name="email" id="email" wire:model="email" placeholder="[email protected]" />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/sponsor-subscription.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
type="button"
@class([
'relative text-sm leading-5 inline-flex items-center rounded-r-none px-2.5 py-2 !ring-0 focus:z-10',
'bg-primary-500 text-white hover:!bg-primary-500 border-transparent' => $option === 'monthly',
'!bg-primary-500 text-white hover:!bg-primary-500 border-transparent' => $option === 'monthly',
'!bg-skin-body hover:!bg-skin-card' => $option !== 'monthly'
])
wire:click="chooseOption('monthly')"
Expand All @@ -19,7 +19,7 @@
type="button"
@class([
'relative text-sm leading-5 -ml-px inline-flex items-center rounded-l-none px-2.5 py-2 !ring-0 focus:z-10',
'bg-primary-500 text-white hover:!bg-primary-500 border-transparent' => $option === 'one-time',
'!bg-primary-500 text-white hover:!bg-primary-500 border-transparent' => $option === 'one-time',
'!bg-skin-body hover:!bg-skin-card' => $option !== 'one-time'
])
wire:click="chooseOption('one-time')"
Expand Down

0 comments on commit 3f4045e

Please sign in to comment.