-
-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecafc2b
commit cf803ed
Showing
1 changed file
with
83 additions
and
45 deletions.
There are no files selected for viewing
128 changes: 83 additions & 45 deletions
128
packages/Webkul/Admin/src/Resources/views/settings/warehouses/edit.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,97 @@ | ||
@extends('admin::layouts.master') | ||
|
||
@section('page_title') | ||
{{ __('admin::app.settings.warehouses.edit-title') }} | ||
@stop | ||
<x-admin::layouts> | ||
<!-- Page Title --> | ||
<x-slot:title> | ||
@lang('admin::app.settings.warehouses.edit.title') | ||
</x-slot> | ||
|
||
@section('content-wrapper') | ||
<div class="content full-page adjacent-center"> | ||
{!! view_render_event('krayin.admin.settings.warehouses.edit.form.before', ['warehouse' => $warehouse]) !!} | ||
|
||
{!! view_render_event('admin.settings.warehouses.edit.header.before', ['warehouse' => $warehouse]) !!} | ||
<x-admin::form | ||
method="PUT" | ||
:action="route('admin.settings.warehouses.update', $warehouse->id)" | ||
> | ||
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300"> | ||
<div class="flex flex-col gap-2"> | ||
<div class="flex cursor-pointer items-center"> | ||
<!-- Breadcrumbs --> | ||
<x-admin::breadcrumbs | ||
name="settings.warehouses.edit" | ||
:entity="$warehouse" | ||
/> | ||
</div> | ||
|
||
<div class="page-header"> | ||
{{ Breadcrumbs::render('settings.warehouses.edit', $warehouse) }} | ||
<div class="text-xl font-bold dark:text-gray-300"> | ||
@lang('admin::app.settings.warehouses.edit.title') | ||
</div> | ||
</div> | ||
|
||
<div class="page-title"> | ||
<h1>{{ __('admin::app.settings.warehouses.edit-title') }}</h1> | ||
<div class="flex items-center gap-x-2.5"> | ||
<!-- Create button for person --> | ||
<div class="flex items-center gap-x-2.5"> | ||
<button | ||
type="submit" | ||
class="primary-button" | ||
> | ||
@lang('admin::app.settings.warehouses.edit.save-btn') | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{!! view_render_event('admin.settings.warehouses.edit.header.after', ['warehouse' => $warehouse]) !!} | ||
<div class="mt-3.5 flex gap-2.5 max-xl:flex-wrap"> | ||
<!-- Left sub-component --> | ||
<div class="flex flex-1 flex-col gap-2 max-xl:flex-auto"> | ||
<div class="box-shadow rounded bg-white p-4 dark:bg-gray-900"> | ||
<p class="mb-4 text-base font-semibold text-gray-800 dark:text-white"> | ||
@lang('admin::app.settings.warehouses.edit.contact-info') | ||
</p> | ||
|
||
{!! view_render_event('krayin.admin.settings.warehouses.edit.left_card.before', ['warehouse' => $warehouse]) !!} | ||
|
||
<form method="POST" action="{{ route('admin.settings.warehouses.update', $warehouse->id) }}" @submit.prevent="onSubmit" enctype="multipart/form-data"> | ||
<div class="page-content"> | ||
<div class="form-container"> | ||
<div class="panel"> | ||
<div class="panel-header"> | ||
{!! view_render_event('admin.settings.warehouses.edit.form_buttons.before', ['warehouse' => $warehouse]) !!} | ||
@include('admin::common.custom-attributes.edit', [ | ||
'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([ | ||
['code', 'NOTIN', ['name', 'description']], | ||
'entity_type' => 'warehouses', | ||
])->sortBy('sort_order'), | ||
'entity' => $warehouse, | ||
]) | ||
|
||
<button type="submit" class="btn btn-md btn-primary"> | ||
{{ __('admin::app.settings.warehouses.save-btn-title') }} | ||
</button> | ||
{!! view_render_event('krayin.admin.settings.warehouses.edit.left_card.after', ['warehouse' => $warehouse]) !!} | ||
|
||
<a href="{{ route('admin.settings.warehouses.index') }}">{{ __('admin::app.settings.warehouses.back') }}</a> | ||
</div> | ||
</div> | ||
|
||
{!! view_render_event('admin.settings.warehouses.edit.form_buttons.after', ['warehouse' => $warehouse]) !!} | ||
<!-- Right sub-component --> | ||
<div class="flex w-[360px] max-w-full flex-col gap-2 max-sm:w-full"> | ||
<x-admin::accordion> | ||
<x-slot:header> | ||
<div class="flex items-center justify-between"> | ||
<p class="p-2.5 text-base font-semibold text-gray-800 dark:text-white"> | ||
@lang('admin::app.settings.roles.create.general') | ||
</p> | ||
</div> | ||
|
||
<div class="panel-body"> | ||
{!! view_render_event('admin.settings.warehouses.edit.form_controls.before', ['warehouse' => $warehouse]) !!} | ||
|
||
@csrf() | ||
|
||
<input name="_method" type="hidden" value="PUT"> | ||
|
||
@include('admin::common.custom-attributes.edit', [ | ||
'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([ | ||
'entity_type' => 'warehouses', | ||
]), | ||
'entity' => $warehouse, | ||
]) | ||
|
||
{!! view_render_event('admin.settings.warehouses.edit.form_controls.after', ['warehouse' => $warehouse]) !!} | ||
</div> | ||
</div> | ||
</div> | ||
</x-slot> | ||
|
||
<x-slot:content> | ||
{!! view_render_event('krayin.admin.settings.warehouses.edit.right_card.before', ['warehouse' => $warehouse]) !!} | ||
|
||
@include('admin::common.custom-attributes.edit', [ | ||
'customAttributes' => app('Webkul\Attribute\Repositories\AttributeRepository')->findWhere([ | ||
['code', 'IN', ['name', 'description']], | ||
'entity_type' => 'warehouses', | ||
])->sortBy('sort_order'), | ||
'entity' => $warehouse, | ||
]) | ||
|
||
{!! view_render_event('krayin.admin.settings.warehouses.edit.right_card.before', ['warehouse' => $warehouse]) !!} | ||
|
||
</x-slot> | ||
</x-admin::accordion> | ||
</div> | ||
</form> | ||
</div> | ||
@stop | ||
</div> | ||
</x-admin::form> | ||
|
||
{!! view_render_event('krayin.admin.settings.warehouses.edit.form.after', ['warehouse' => $warehouse]) !!} | ||
|
||
</x-admin::layouts> |