@extends('admin.layouts.master') @section('title') Aramian Brother`s Jewelry @endsection @section('content') @php use App\Models\ProductImage; use App\Models\ProductPcs; use App\Models\Product; use App\Models\ProductMainMenu; @endphp @include('admin.layouts.topbar') @include('admin.layouts.sidebar')
Admin

Products Edit

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if($errors) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif

Edit

@method('POST')
@if(!empty($productMainImage->main_image))
{{$productMainImage->main_image}}
@else
@endif
@if(isset($productsAllImage) && count($productsAllImage) > 0) @foreach ($productsAllImage as $images)
{{$images->image_name}}
@endforeach @endif
@if(count($productPcs) > 0) @foreach ($productPcs as $key => $pcsData)
@if ($key > 0) @endif
@if(!empty($pcsData->pcs_img))
{{$pcsData->pcs_img}}
@else {{--
--}} @endif
@endforeach @else
@endif
in_stock ? 'checked' : '' }} onchange="document.querySelector('#in_stock').value = (this.checked ? '1' : '0')">
status ? 'checked' : '' }} onchange="document.querySelector('#status').value = (this.checked ? '1' : '0')">
@foreach ($menuType as $menuTypeVal)
id, $productMenu) ? 'checked' : '' }}>
@endforeach
@foreach ($mainMenu as $key => $categoryVal)
id, $productMainMenu) ? 'checked' : '' }}>
@endforeach
@foreach ($collection as $key => $collectionVal)
id == $product->collection_id ? 'checked' : '' }} >
@endforeach
@foreach ($category as $categoryVal)
id == $product->category_id ? 'checked' : '' }}>
@endforeach
{{--
status ? 'checked' : '' }} onchange="document.querySelector('#status').value = (this.checked ? '1' : '0')">
--}}
bestselling ? 'checked' : '' }} onchange="document.querySelector('#bestselling').value = (this.checked ? '1' : '0')">
{{--
--}}
@include('admin.layouts.footer')
{{-- --}}