44 lines
1.4 KiB
PHP
Executable file
44 lines
1.4 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
|
|
@if ($errors->any())
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
<h4 class="font-weight-bold py-2 mb-2">
|
|
{{ __('Create/Edit Produkt') }}
|
|
</h4>
|
|
|
|
{!! Form::open(['action' => route('admin_product_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
|
|
<input type="hidden" name="id" id="id" value="@if($product->id>0){{$product->id}}@else new @endif">
|
|
|
|
<div class="text-left mt-0 mb-2">
|
|
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
|
<a href="{{ route('admin_product_show') }}" class="btn btn-default">{{ __('back') }}</a>
|
|
</div>
|
|
|
|
@include('admin.product.form')
|
|
|
|
<div class="text-left mt-0 mb-2">
|
|
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
|
<a href="{{ route('admin_product_show') }}" class="btn btn-default">{{ __('back') }}</a>
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
@include('admin.product.images')
|
|
|
|
@include('admin.product.upload_whitelabel')
|
|
|
|
@endsection
|