Skip to content

Commit

Permalink
improve breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Aug 19, 2023
1 parent f3468e9 commit c4bc79a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
11 changes: 11 additions & 0 deletions resources/views/themes/zeus/wind/contact-form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
<h2>{{ __('Contact us') }}</h2>
</x-slot>

<x-slot name="breadcrumbs">
<li class="flex items-center">
<a href="{{ url('/') }}">{{ __('Home') }}</a>
@svg('iconpark-rightsmall-o','fill-current w-4 h-4 mx-3 rtl:rotate-180')
</li>

<li class="flex items-center">
{{ __('Contact us') }}
</li>
</x-slot>

<div class="max-w-4xl mx-auto">
<x-filament::section>
{{ __('feel free to contact us.') }}
Expand Down
18 changes: 9 additions & 9 deletions src/Http/Livewire/ContactsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ protected function getFormSchema(): array
Grid::make()
->schema([
ViewField::make('department_id')
->view(app('windTheme') . '.departments')
->view(app('windTheme').'.departments')
->columnSpan([
'default' => 1,
'md' => 2,
])
->label('')
->visible(fn (): bool => WindPlugin::get()->hasDepartmentResource()),
->visible(fn(): bool => WindPlugin::get()->hasDepartmentResource()),

Section::make('')
->schema([
Expand Down Expand Up @@ -112,18 +112,18 @@ protected function getFormSchema(): array
];
}

public function render(): View | Application | Factory | \Illuminate\Contracts\Foundation\Application
public function render(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
{
seo()
->site(config('app.name', 'Laravel'))
->title(__('Contact Us') . ' ' . config('zeus.site_title'))
->description(__('Contact Us') . ' ' . config('zeus.site_description'))
->rawTag('favicon', '<link rel="icon" type="image/x-icon" href="' . asset('favicon/favicon.ico') . '">')
->rawTag('<meta name="theme-color" content="' . config('zeus.site_color') . '" />')
->site(config('zeus.site_title', 'Laravel'))
->title(__('Contact Us').' - '.config('zeus.site_title'))
->description(__('Contact Us').' - '.config('zeus.site_description').' '.config('zeus.site_title'))
->rawTag('favicon', '<link rel="icon" type="image/x-icon" href="'.asset('favicon/favicon.ico').'">')
->rawTag('<meta name="theme-color" content="'.config('zeus.site_color').'" />')
->withUrl()
->twitter();

return view(app('windTheme') . '.contact-form')
return view(app('windTheme').'.contact-form')
->layout(config('zeus.layout'));
}
}

0 comments on commit c4bc79a

Please sign in to comment.