@@ -44,15 +44,15 @@ public static function form(Schema $schema): Schema
4444 ->searchable ()
4545 ->preload ()
4646 ->required (),
47-
47+
4848 TextInput::make ('code ' )
4949 ->label ('Referral Code ' )
5050 ->required ()
5151 ->maxLength (20 )
5252 ->unique (ignoreRecord: true )
5353 ->alphaDash ()
5454 ->helperText ('Leave empty to auto-generate ' ),
55-
55+
5656 Select::make ('status ' )
5757 ->options ([
5858 'active ' => 'Active ' ,
@@ -63,26 +63,26 @@ public static function form(Schema $schema): Schema
6363 ->required (),
6464 ])
6565 ->columnSpan (1 ),
66-
66+
6767 Section::make ('Performance Metrics ' )
6868 ->description ('Real-time referral statistics ' )
6969 ->schema ([
7070 Placeholder::make ('clicks ' )
7171 ->label ('Total Clicks ' )
7272 ->content (fn (?Referral $ record ): string => $ record ? number_format ($ record ->clicks ) : '0 ' ),
73-
73+
7474 Placeholder::make ('conversions ' )
7575 ->label ('Conversions ' )
7676 ->content (fn (?Referral $ record ): string => $ record ? number_format ($ record ->conversions ) : '0 ' ),
77-
77+
7878 Placeholder::make ('conversion_rate ' )
7979 ->label ('Conversion Rate ' )
80- ->content (fn (?Referral $ record ): string => $ record && $ record ->clicks > 0
81- ? number_format (($ record ->conversions / $ record ->clicks ) * 100 , 2 ) . '% '
80+ ->content (fn (?Referral $ record ): string => $ record && $ record ->clicks > 0
81+ ? number_format (($ record ->conversions / $ record ->clicks ) * 100 , 2 ). '% '
8282 : 'N/A ' ),
8383 ])
8484 ->columnSpan (1 ),
85-
85+
8686 Section::make ('Conversion Details ' )
8787 ->description ('Information about the referred user and conversion ' )
8888 ->schema ([
@@ -92,7 +92,7 @@ public static function form(Schema $schema): Schema
9292 ->searchable ()
9393 ->preload ()
9494 ->disabled (),
95-
95+
9696 DateTimePicker::make ('converted_at ' )
9797 ->label ('Conversion Date ' )
9898 ->disabled (),
0 commit comments