-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.x' of github.com:lunarphp/lunar into feature/shipping…
…-addon
- Loading branch information
Showing
16 changed files
with
427 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/admin/resources/views/forms/components/mailer-select.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div> | ||
@if(count($getMailers())) | ||
<x-filament::input.wrapper> | ||
<x-filament::input.select wire:model="selectedMailer"> | ||
@foreach($getMailers() as $value => $label) | ||
<option value="{{ $value }}">{{ $label }}</option> | ||
@endforeach | ||
</x-filament::input.select> | ||
</x-filament::input.wrapper> | ||
|
||
<div class="mt-4"> | ||
<iframe | ||
srcdoc="{{ $getPreview() }}" | ||
class="grow w-full h-full" | ||
style="height:500px" | ||
></iframe> | ||
</div> | ||
@endif | ||
</div> |
13 changes: 0 additions & 13 deletions
13
packages/admin/resources/views/infolists/components/alert.blade.php
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/admin/resources/views/partials/mail/mail-preview.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Preview mailer! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
packages/admin/src/Support/Actions/Orders/UpdateStatusAction.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Lunar\Admin\Support\Actions\Orders; | ||
|
||
use Filament\Actions\Action; | ||
use Filament\Support\Enums\MaxWidth; | ||
use Lunar\Admin\Support\Actions\Traits\UpdatesOrderStatus; | ||
use Lunar\Models\Order; | ||
|
||
class UpdateStatusAction extends Action | ||
{ | ||
use UpdatesOrderStatus; | ||
|
||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->label( | ||
__('lunarpanel::actions.orders.update_status.label') | ||
); | ||
|
||
$this->modalWidth(MaxWidth::TwoExtraLarge); | ||
|
||
$this->steps( | ||
$this->getFormSteps() | ||
); | ||
|
||
$this->action( | ||
fn (Order $record, array $data) => $this->updateStatus($record, $data) | ||
); | ||
} | ||
} |
Oops, something went wrong.