mirror of
https://github.com/anna-sara/filament_inventory
synced 2025-10-27 06:37:13 +01:00
Compare commits
No commits in common. "b22d05538e53ffa4d2edbc052272bf8e44a79f43" and "581a1fbf74487dd4fd6e2c1a6fb6decf1915d7c2" have entirely different histories.
b22d05538e
...
581a1fbf74
7 changed files with 7 additions and 21 deletions
|
|
@ -67,7 +67,6 @@ class ItemResource extends Resource
|
||||||
->schema([
|
->schema([
|
||||||
Radio::make('type')
|
Radio::make('type')
|
||||||
->translateLabel()
|
->translateLabel()
|
||||||
->live()
|
|
||||||
->options([
|
->options([
|
||||||
'game' => __('Game'),
|
'game' => __('Game'),
|
||||||
'item' => __('Item'),
|
'item' => __('Item'),
|
||||||
|
|
@ -100,20 +99,9 @@ class ItemResource extends Resource
|
||||||
->default(0)
|
->default(0)
|
||||||
->hidden(fn ($get): string => $get('type') == 'game' || $get('type') == 'literature' ),
|
->hidden(fn ($get): string => $get('type') == 'game' || $get('type') == 'literature' ),
|
||||||
Select::make('category_id')
|
Select::make('category_id')
|
||||||
->label('Category items')
|
->label('Category')
|
||||||
->translateLabel()
|
->translateLabel()
|
||||||
->options(Category::where('type', 'item')->pluck('name', 'id'))
|
->options(Category::all()->pluck('name', 'id')),
|
||||||
->hidden(fn ($get): string => $get('type') == 'game' || $get('type') == 'literature' ),
|
|
||||||
Select::make('category_id')
|
|
||||||
->label('Category games')
|
|
||||||
->translateLabel()
|
|
||||||
->options(Category::where('type', 'game')->pluck('name', 'id'))
|
|
||||||
->hidden(fn ($get): string => $get('type') == 'item' || $get('type') == 'literature' ),
|
|
||||||
Select::make('category_id')
|
|
||||||
->label('Category literature')
|
|
||||||
->translateLabel()
|
|
||||||
->options(Category::where('type', 'literature')->pluck('name', 'id'))
|
|
||||||
->hidden(fn ($get): string => $get('type') == 'game' || $get('type') == 'item' ),
|
|
||||||
TextInput::make('cost')
|
TextInput::make('cost')
|
||||||
->label('Price')
|
->label('Price')
|
||||||
->translateLabel()
|
->translateLabel()
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class Delivered extends Mailable
|
||||||
public function envelope(): Envelope
|
public function envelope(): Envelope
|
||||||
{
|
{
|
||||||
return new Envelope(
|
return new Envelope(
|
||||||
subject: 'vBytes - Vara levererad',
|
subject: 'Levererad',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class ReservationCreated extends Mailable
|
||||||
public function envelope(): Envelope
|
public function envelope(): Envelope
|
||||||
{
|
{
|
||||||
return new Envelope(
|
return new Envelope(
|
||||||
subject: 'Reservation skapad',
|
subject: 'Reservation Created',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -44,7 +44,6 @@ class ReservationCreated extends Mailable
|
||||||
'reservationName' => $this->reservation->username,
|
'reservationName' => $this->reservation->username,
|
||||||
'reservationDesc' => Item::where('id', $this->reservation->item_id)->pluck('desc')->first(),
|
'reservationDesc' => Item::where('id', $this->reservation->item_id)->pluck('desc')->first(),
|
||||||
'reservationEmail' => $this->reservation->email,
|
'reservationEmail' => $this->reservation->email,
|
||||||
'reservationPhone' => $this->reservation->phone,
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ReservationCreatedUser extends Mailable
|
||||||
public function envelope(): Envelope
|
public function envelope(): Envelope
|
||||||
{
|
{
|
||||||
return new Envelope(
|
return new Envelope(
|
||||||
subject: 'vBytes - Reservation skapad',
|
subject: 'Reservation skapad',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ReservationDeletedUser extends Mailable
|
||||||
public function envelope(): Envelope
|
public function envelope(): Envelope
|
||||||
{
|
{
|
||||||
return new Envelope(
|
return new Envelope(
|
||||||
subject: 'vBytes - Reservation borttagen',
|
subject: 'Reservation borttagen',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class ReturnDateReminder extends Mailable
|
||||||
public function envelope(): Envelope
|
public function envelope(): Envelope
|
||||||
{
|
{
|
||||||
return new Envelope(
|
return new Envelope(
|
||||||
subject: 'vBytes - Påminnelse om återlämning',
|
subject: 'Påminnelse om återlämning',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,5 @@
|
||||||
<h1>Reservation skapad</h1>
|
<h1>Reservation skapad</h1>
|
||||||
<p>{{ $reservationName }} har reserverat {{ $reservationDesc }}</p>
|
<p>{{ $reservationName }} har reserverat {{ $reservationDesc }}</p>
|
||||||
<p>Mail: {{ $reservationEmail }}</p>
|
<p>Mail: {{ $reservationEmail }}</p>
|
||||||
<p>Telefon: {{ $reservationPhone }}</p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in a new issue