Skip to content

Commit 9b618e5

Browse files
committed
Dev
1 parent 3e855ec commit 9b618e5

3 files changed

Lines changed: 24 additions & 17 deletions

File tree

resources/views/rma.blade.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@extends('rapidez::layouts.app')
2+
3+
@section('content')
4+
<div class="container">
5+
<div class="grid gap-5">
6+
<label>
7+
<x-rapidez::label>@lang('Order ID')</x-rapidez::label>
8+
<x-rapidez::input name="order_id" />
9+
</label>
10+
<label>
11+
<x-rapidez::label>@lang('Last name')</x-rapidez::label>
12+
<x-rapidez::input name="lastname" />
13+
</label>
14+
<label>
15+
<x-rapidez::label>@lang('Email')</x-rapidez::label>
16+
<x-rapidez::input name="email" />
17+
</label>
18+
</div>
19+
20+
...
21+
</div>
22+
@endsection

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

33
Route::middleware('web')->group(function () {
4-
//
4+
Route::view('rma', 'rapidez-rma::rma');
55
});

src/RMAServiceProvider.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ public function boot()
1616
$this
1717
->bootRoutes()
1818
->bootViews()
19-
->bootPublishables()
20-
->bootFilters();
19+
->bootPublishables();
2120
}
2221

2322
public function bootRoutes() : self
@@ -47,18 +46,4 @@ public function bootPublishables() : self
4746

4847
return $this;
4948
}
50-
51-
public function bootFilters() : self
52-
{
53-
Eventy::addFilter('index.product.data', function ($data) {
54-
// Manipulate the data
55-
return $data;
56-
});
57-
58-
Eventy::addFilter('index.product.mapping', fn ($mapping) => array_merge_recursive($mapping ?: [], [
59-
'properties' => [
60-
// Additional mappings
61-
],
62-
]));
63-
}
6449
}

0 commit comments

Comments
 (0)