Files
getgreen-backend/resources/views/dashboard/products/update.blade.php
2026-04-15 20:12:12 +05:00

63 lines
2.3 KiB
PHP
Executable File

@extends('dashboard.layouts.app')
@section('title', trans('admin.edit') . ' - ')
@section('speedbar')
<div class="content-header row">
<div class="content-header-left col-md-9 col-12 mb-2">
<div class="row breadcrumbs-top">
<div class="col-12">
<h2 class="content-header-title float-left mb-0">@lang('admin.edit')</h2>
<div class="breadcrumb-wrapper col-12">
<ol class="breadcrumb">
<li class="breadcrumb-item ">
<a href="{{ route('dashboard') }}">@lang('admin.home')</a>
</li>
<li class="breadcrumb-item ">
<a href="{{ route('dashboard.products') }}">@lang('admin.products.title')</a>
</li>
<li class="breadcrumb-item active">
@lang('admin.edit')
</li>
</ol>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('content')
<div id="app">
<product-edit :product="{{ json_encode($product) }}" :brands="{{ json_encode($brands) }}"
:categories="{{ json_encode($categories) }}" :colors="{{ json_encode($colors) }}"
:back-url="{{ json_encode(url()->previous()) }}" :measurement="{{ json_encode($measurement) }}"></product-edit>
</div>
@endsection
@push('css')
<link href="/vendor/fileinput/css/fileinput.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vue-file-agent@latest/dist/vue-file-agent.css" />
@endpush
@push('js')
@vite('resources/js/app.js')
<script>
$(document).ready(function() {
$("#image_cat").hide();
$("#remove_img").hide();
$("#add_img").show();
$("#add_img").click(function() {
$("#image_cat").show();
$("#remove_img").show();
$("#add_img").hide();
});
$("#remove_img").click(function() {
$("#image_cat").hide();
$("#remove_img").hide();
$("#add_img").show();
});
});
</script>
@endpush