FleetCart/Modules/Variation/Resources/views/admin/variations/edit.blade.php

44 lines
1.6 KiB
PHP
Raw Normal View History

2023-12-03 14:07:47 +00:00
@extends('admin::layout')
@component('admin::components.page.header')
@slot('title', trans('admin::resource.edit', ['resource' => trans('variation::variations.variation')]))
@slot('subtitle', $variation->name)
<li><a href="{{ route('admin.variations.index') }}">{{ trans('variation::variations.variations') }}</a></li>
<li class="active">{{ trans('admin::resource.edit', ['resource' => trans('variation::variations.variation')]) }}</li>
@endcomponent
@section('content')
<div class="box">
<div class="box-body">
<div id="app">
<form
class="form"
@input="errors.clear($event.target.name)"
@submit.prevent
ref="form"
>
@include('variation::admin.variations.partials.general')
@include('variation::admin.variations.partials.values')
@include('variation::admin.variations.partials.submit')
</form>
</div>
</div>
</div>
@endsection
@include('variation::admin.variations.partials.scripts')
@push('globals')
<script type="module">
FleetCart.data['variation'] = {!! $variation_resource !!};
</script>
@vite([
'Modules/Variation/Resources/assets/admin/sass/main.scss',
'Modules/Variation/Resources/assets/admin/js/edit.js',
'Modules/Media/Resources/assets/admin/sass/main.scss',
'Modules/Media/Resources/assets/admin/js/main.js',
])
@endpush