-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContactIndexController.php
More file actions
31 lines (27 loc) · 1.02 KB
/
ContactIndexController.php
File metadata and controls
31 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace App\Http\Controllers\Contact;
use App\Actions\PageAction;
use App\Http\Controllers\Controller;
use Illuminate\View\View;
class ContactIndexController extends Controller
{
/**
* Display the user's profile form.
*/
public function __invoke(): View
{
$openingHours = [
['day' => 'Monday', 'open' => '08:00', 'close' => '18:00'],
['day' => 'Tuesday', 'open' => '08:00', 'close' => '18:00'],
['day' => 'Wednesday', 'open' => '08:00', 'close' => '18:00'],
['day' => 'Thursday', 'open' => '08:00', 'close' => '18:00'],
['day' => 'Friday', 'open' => '08:00', 'close' => '18:00'],
['day' => 'Saturday', 'open' => '08:00', 'close' => '18:00'],
['day' => 'Sunday', 'open' => null, 'close' => null],
];
return view('app.contact.index')->with([
'page' => (new PageAction(locale: null, routeName: 'contact.index'))->default(),
'openingHours' => $openingHours,
]);
}
}