Skip to content

Commit 1e129cb

Browse files
committed
Formatação laravel pint, inclusão funcionalidade do mapa , criação da função agendamento.
1 parent 6fc7c02 commit 1e129cb

File tree

82 files changed

+833
-803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+833
-803
lines changed

app/Enums/Products/CategoryProductEnum.php

+26-26
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,38 @@
77
enum CategoryProductEnum: string implements HasLabel
88
{
99
// Wallace (Retidado os espaços em branco para economizar tamanho de arquivo)
10-
case PROCESSOR = 'processor';
11-
case MOTHERBOARD = 'motherboard';
12-
case SSD = 'SSD';
13-
case NVME = 'NVME';
10+
case PROCESSOR = 'processor';
11+
case MOTHERBOARD = 'motherboard';
12+
case SSD = 'SSD';
13+
case NVME = 'NVME';
1414
case GRAPHICS_CARD = 'graphic_card';
15-
case POWER_SUPPLY = 'power_supply';
16-
case COOLING = 'cooling';
17-
case HEADPHONES = 'headphones';
18-
case MEMORY = 'memory';
19-
case HARD_DISK = 'hard_disk';
20-
case KEYBOARD = 'keyboard';
21-
case MOUSE = 'mouse';
22-
case MONITOR = 'monitor';
23-
case SOFTWARE = 'software';
15+
case POWER_SUPPLY = 'power_supply';
16+
case COOLING = 'cooling';
17+
case HEADPHONES = 'headphones';
18+
case MEMORY = 'memory';
19+
case HARD_DISK = 'hard_disk';
20+
case KEYBOARD = 'keyboard';
21+
case MOUSE = 'mouse';
22+
case MONITOR = 'monitor';
23+
case SOFTWARE = 'software';
2424

2525
public function getLabel(): string
2626
{
2727
return match ($this) {
28-
self::PROCESSOR => 'Processador',
29-
self::MOTHERBOARD => 'Placa Mãe',
30-
self::SSD => 'SSD',
31-
self::NVME => 'NVME',
28+
self::PROCESSOR => 'Processador',
29+
self::MOTHERBOARD => 'Placa Mãe',
30+
self::SSD => 'SSD',
31+
self::NVME => 'NVME',
3232
self::GRAPHICS_CARD => 'Placa de Vídeo',
33-
self::POWER_SUPPLY => 'Fonte de Alimentação',
34-
self::COOLING => 'Cooling',
35-
self::HEADPHONES => 'Fones de Ouvido',
36-
self::MEMORY => 'Memoria',
37-
self::HARD_DISK => 'Disco Rigido',
38-
self::KEYBOARD => 'Teclado',
39-
self::MOUSE => 'Mouse',
40-
self::MONITOR => 'Monitor',
41-
self::SOFTWARE => 'Software',
33+
self::POWER_SUPPLY => 'Fonte de Alimentação',
34+
self::COOLING => 'Cooling',
35+
self::HEADPHONES => 'Fones de Ouvido',
36+
self::MEMORY => 'Memoria',
37+
self::HARD_DISK => 'Disco Rigido',
38+
self::KEYBOARD => 'Teclado',
39+
self::MOUSE => 'Mouse',
40+
self::MONITOR => 'Monitor',
41+
self::SOFTWARE => 'Software',
4242
};
4343
}
4444
}

app/Enums/Products/MovimentProductEnum.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
enum MovimentProductEnum: string implements HasLabel
88
{
9-
case IN = 'in';
9+
case IN = 'in';
1010
case OUT = 'out';
1111
public function getLabel(): ?string
1212
{
1313
return match ($this) {
14-
self::IN => 'Entrada',
14+
self::IN => 'Entrada',
1515
self::OUT => 'Saída',
1616

1717
};
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace App\Enums\Tickets;
4+
5+
use Filament\Support\Contracts\{HasLabel};
6+
7+
enum AppoitmentTicketEnum: string implements HasLabel
8+
{
9+
case PRESENCIAL = 'presencial';
10+
case REMOTE = 'remote';
11+
12+
//
13+
14+
public function getLabel(): ?string
15+
{
16+
17+
return match ($this) {
18+
self::PRESENCIAL => 'Presencial',
19+
self::REMOTE => 'Remoto',
20+
21+
};
22+
}
23+
24+
}

app/Enums/Tickets/CategoryTicketEnum.php

+27-31
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,39 @@
22

33
namespace App\Enums\Tickets;
44

5-
use Filament\Support\Contracts\HasColor;
6-
use Filament\Support\Contracts\HasLabel;
5+
use Filament\Support\Contracts\{HasColor, HasLabel};
76

8-
enum CategoryTicketEnum: string implements HasColor,HasLabel
7+
enum CategoryTicketEnum: string implements HasColor, HasLabel
98
{
10-
11-
case SOFTWARE = 'software';
12-
case NOTEBOOK = 'notebook';
13-
case DESKTOP = 'desktop';
9+
case SOFTWARE = 'software';
10+
case NOTEBOOK = 'notebook';
11+
case DESKTOP = 'desktop';
1412
case MOBILE_PHONE = 'mobile_phone';
15-
case NETWORK = 'network';
16-
13+
case NETWORK = 'network';
1714

18-
//
15+
//
1916

20-
public function getLabel(): ?string
21-
{
17+
public function getLabel(): ?string
18+
{
2219

23-
return match ($this) {
24-
self::SOFTWARE => 'Sistemas',
25-
self::NOTEBOOK => 'Notebook',
26-
self::DESKTOP => 'Computador',
27-
self::MOBILE_PHONE => 'Celular',
28-
self::NETWORK => 'Redes',
29-
};
30-
}
31-
32-
public function getColor(): ?string
33-
{
34-
return match ($this) {
35-
self::SOFTWARE => 'primary',
36-
self::NOTEBOOK => 'info',
37-
self::DESKTOP => 'warning',
38-
self::MOBILE_PHONE => 'danger',
39-
self::NETWORK => 'success',
20+
return match ($this) {
21+
self::SOFTWARE => 'Sistemas',
22+
self::NOTEBOOK => 'Notebook',
23+
self::DESKTOP => 'Computador',
24+
self::MOBILE_PHONE => 'Celular',
25+
self::NETWORK => 'Redes',
26+
};
27+
}
4028

29+
public function getColor(): ?string
30+
{
31+
return match ($this) {
32+
self::SOFTWARE => 'primary',
33+
self::NOTEBOOK => 'info',
34+
self::DESKTOP => 'warning',
35+
self::MOBILE_PHONE => 'danger',
36+
self::NETWORK => 'success',
4137

42-
};
43-
}
38+
};
4439
}
40+
}

app/Enums/Tickets/PriorityTicketEnum.php

+27-29
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,37 @@
22

33
namespace App\Enums\Tickets;
44

5-
use Filament\Support\Contracts\HasColor;
6-
use Filament\Support\Contracts\HasLabel;
5+
use Filament\Support\Contracts\{HasColor, HasLabel};
76

8-
enum PriorityTicketEnum: string implements HasColor,HasLabel
7+
enum PriorityTicketEnum: string implements HasColor, HasLabel
98
{
10-
119
case VERY_LOW = 'very_low';
12-
case LOW = 'low';
13-
case MEDIUM = 'medium';
14-
case HIGH = 'high';
15-
case URGENT = 'urgent';
16-
//
10+
case LOW = 'low';
11+
case MEDIUM = 'medium';
12+
case HIGH = 'high';
13+
case URGENT = 'urgent';
14+
//
1715

18-
public function getLabel(): ?string
19-
{
16+
public function getLabel(): ?string
17+
{
2018

21-
return match ($this) {
22-
self::VERY_LOW => 'Muito Baixo',
23-
self::LOW => 'Baixo',
24-
self::MEDIUM => 'Medio',
25-
self::HIGH => 'Alto',
26-
self::URGENT => 'Urgente',
27-
};
28-
}
19+
return match ($this) {
20+
self::VERY_LOW => 'Muito Baixo',
21+
self::LOW => 'Baixo',
22+
self::MEDIUM => 'Medio',
23+
self::HIGH => 'Alto',
24+
self::URGENT => 'Urgente',
25+
};
26+
}
2927

30-
public function getColor(): ?string
31-
{
32-
return match ($this) {
33-
self::VERY_LOW => 'success',
34-
self::LOW => 'primary',
35-
self::MEDIUM => 'warning',
36-
self::HIGH => 'danger',
37-
self::URGENT => 'danger',
38-
};
39-
}
28+
public function getColor(): ?string
29+
{
30+
return match ($this) {
31+
self::VERY_LOW => 'success',
32+
self::LOW => 'primary',
33+
self::MEDIUM => 'warning',
34+
self::HIGH => 'danger',
35+
self::URGENT => 'danger',
36+
};
4037
}
38+
}

app/Enums/Tickets/StatusTicketEnum.php

+16-22
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,37 @@
22

33
namespace App\Enums\Tickets;
44

5-
use Filament\Support\Contracts\HasColor;
6-
use Filament\Support\Contracts\HasLabel;
7-
8-
enum StatusTicketEnum: string implements HasLabel,HasColor
5+
use Filament\Support\Contracts\{HasColor, HasLabel};
96

7+
enum StatusTicketEnum: string implements HasLabel, HasColor
108
{
11-
12-
case OPEN = 'open';
13-
case INPROGRESS = 'in_progress';
14-
case PENDING = 'pending';
15-
case CANCELED= 'canceled';
16-
case RESOLVED = 'resolved';
9+
case OPEN = 'open';
10+
case INPROGRESS = 'in_progress';
11+
case PENDING = 'pending';
12+
case CANCELED = 'canceled';
13+
case RESOLVED = 'resolved';
1714
//
1815

1916
public function getLabel(): ?string
2017
{
2118

22-
return match ($this) {
23-
self::OPEN => 'Aberto',
19+
return match ($this) {
20+
self::OPEN => 'Aberto',
2421
self::INPROGRESS => 'Em Progresso',
25-
self::PENDING => 'Pendente',
26-
self::CANCELED => 'Cancelado',
27-
self::RESOLVED => 'Resolvido',
22+
self::PENDING => 'Pendente',
23+
self::CANCELED => 'Cancelado',
24+
self::RESOLVED => 'Resolvido',
2825
};
2926
}
3027

3128
public function getColor(): ?string
3229
{
3330
return match ($this) {
34-
self::OPEN => 'primary',
31+
self::OPEN => 'primary',
3532
self::INPROGRESS => 'warning',
36-
self::PENDING => 'secondary',
37-
self::CANCELED => 'danger',
38-
self::RESOLVED => 'success',
33+
self::PENDING => 'secondary',
34+
self::CANCELED => 'danger',
35+
self::RESOLVED => 'success',
3936
};
4037
}
4138
}
42-
43-
44-

app/Filament/Admin/Resources/InventoryResource.php

+13-18
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,29 @@
22

33
namespace App\Filament\Admin\Resources;
44

5-
use Filament\Forms;
6-
use Filament\Tables;
5+
use App\Filament\Admin\Resources\InventoryResource\{Pages};
6+
use App\Models\{Inventory};
7+
use Filament\Forms\Components\{DatePicker, Fieldset, Select, TextInput, Textarea};
78
use Filament\Forms\Form;
8-
use App\Models\Inventory;
9-
use Filament\Tables\Table;
10-
use App\Models\Manufacturer;
119
use Filament\Resources\Resource;
12-
use Filament\Forms\Components\Select;
13-
use Filament\Forms\Components\Fieldset;
14-
use Filament\Forms\Components\Textarea;
15-
use Filament\Tables\Columns\TextColumn;
16-
use Filament\Forms\Components\TextInput;
17-
use Filament\Forms\Components\DatePicker;
18-
use Illuminate\Database\Eloquent\Builder;
10+
use Filament\Tables\Table;
11+
use Filament\{Tables};
1912
use Leandrocfe\FilamentPtbrFormFields\Money;
20-
use Illuminate\Database\Eloquent\SoftDeletingScope;
21-
use App\Filament\Admin\Resources\InventoryResource\Pages;
22-
use App\Filament\Admin\Resources\InventoryResource\RelationManagers;
2313

2414
class InventoryResource extends Resource
2515
{
2616
protected static ?string $model = Inventory::class;
2717

2818
protected static ?string $navigationIcon = 'fas-truck-moving';
19+
2920
protected static ?string $navigationGroup = 'Produtos';
21+
3022
protected static ?string $navigationLabel = 'Estoque';
23+
3124
protected static ?string $modelLabel = 'Estoque';
25+
3226
protected static ?string $modelLabelPlural = "Estoque";
27+
3328
protected static ?int $navigationSort = 3;
3429

3530
public static function form(Form $form): Form
@@ -142,10 +137,10 @@ public static function getRelations(): array
142137
public static function getPages(): array
143138
{
144139
return [
145-
'index' => Pages\ListInventory::route('/'),
140+
'index' => Pages\ListInventory::route('/'),
146141
'create' => Pages\CreateInventory::route('/create'),
147-
'view' => Pages\ViewInventory::route('/{record}'),
148-
'edit' => Pages\EditInventory::route('/{record}/edit'),
142+
'view' => Pages\ViewInventory::route('/{record}'),
143+
'edit' => Pages\EditInventory::route('/{record}/edit'),
149144
];
150145
}
151146
}

0 commit comments

Comments
 (0)