Compare commits

..

No commits in common. "b22d05538e53ffa4d2edbc052272bf8e44a79f43" and "581a1fbf74487dd4fd6e2c1a6fb6decf1915d7c2" have entirely different histories.

7 changed files with 7 additions and 21 deletions

View file

@ -67,7 +67,6 @@ class ItemResource extends Resource
->schema([
Radio::make('type')
->translateLabel()
->live()
->options([
'game' => __('Game'),
'item' => __('Item'),
@ -100,20 +99,9 @@ class ItemResource extends Resource
->default(0)
->hidden(fn ($get): string => $get('type') == 'game' || $get('type') == 'literature' ),
Select::make('category_id')
->label('Category items')
->label('Category')
->translateLabel()
->options(Category::where('type', 'item')->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' ),
->options(Category::all()->pluck('name', 'id')),
TextInput::make('cost')
->label('Price')
->translateLabel()

View file

@ -29,7 +29,7 @@ class Delivered extends Mailable
public function envelope(): Envelope
{
return new Envelope(
subject: 'vBytes - Vara levererad',
subject: 'Levererad',
);
}

View file

@ -29,7 +29,7 @@ class ReservationCreated extends Mailable
public function envelope(): Envelope
{
return new Envelope(
subject: 'Reservation skapad',
subject: 'Reservation Created',
);
}
@ -44,7 +44,6 @@ class ReservationCreated extends Mailable
'reservationName' => $this->reservation->username,
'reservationDesc' => Item::where('id', $this->reservation->item_id)->pluck('desc')->first(),
'reservationEmail' => $this->reservation->email,
'reservationPhone' => $this->reservation->phone,
],
);
}

View file

@ -27,7 +27,7 @@ class ReservationCreatedUser extends Mailable
public function envelope(): Envelope
{
return new Envelope(
subject: 'vBytes - Reservation skapad',
subject: 'Reservation skapad',
);
}

View file

@ -27,7 +27,7 @@ class ReservationDeletedUser extends Mailable
public function envelope(): Envelope
{
return new Envelope(
subject: 'vBytes - Reservation borttagen',
subject: 'Reservation borttagen',
);
}

View file

@ -30,7 +30,7 @@ class ReturnDateReminder extends Mailable
public function envelope(): Envelope
{
return new Envelope(
subject: 'vBytes - Påminnelse om återlämning',
subject: 'Påminnelse om återlämning',
);
}

View file

@ -7,6 +7,5 @@
<h1>Reservation skapad</h1>
<p>{{ $reservationName }} har reserverat {{ $reservationDesc }}</p>
<p>Mail: {{ $reservationEmail }}</p>
<p>Telefon: {{ $reservationPhone }}</p>
</body>
</html>