32 lines
1.3 KiB
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<x-layouts.admin>
<x-slot name="title">{{ trans('general.title.new', ['type' => trans_choice('general.dashboards', 1)]) }}</x-slot>
2020-01-07 17:15:00 +03:00
2022-06-01 10:15:55 +03:00
<x-slot name="content">
<x-form.container>
<x-form id="dashboard" route="dashboards.store">
<x-form.section>
<x-slot name="head">
<x-form.section.head title="{{ trans('general.general') }}" description="{{ trans('dashboards.form_description.general') }}" />
</x-slot>
2020-01-07 17:15:00 +03:00
2022-06-01 10:15:55 +03:00
<x-slot name="body">
<x-form.group.text name="name" label="{{ trans('general.name') }}" />
2020-01-07 17:15:00 +03:00
2022-06-01 10:15:55 +03:00
@can('read-auth-users')
<x-form.group.checkbox name="users" label="{{ trans_choice('general.users', 2) }}" :options="$users" :checked="[]" />
@endcan
</x-slot>
</x-form.section>
2020-01-07 17:15:00 +03:00
2022-06-01 10:15:55 +03:00
<x-form.section>
<x-slot name="foot">
<x-form.buttons cancel-route="dashboards.index" />
</x-slot>
</x-form.section>
</x-form>
</x-form.container>
</x-slot>
2020-01-07 17:15:00 +03:00
2022-06-01 10:15:55 +03:00
<x-script folder="common" file="dashboards" />
</x-layouts.admin>