@extends('admin.layouts.app') @section('title', 'Add Product') @section('sidebar_content')
Product Image
Product Gallery
@endsection @section('content')

{{ $data == null ? 'Add' : 'Update ' }} Product {{ $data == null ? '' : '#' . $data->id }}

{{ $data == null ? 'Upload' : 'Update ' }} Product Details

@csrf {{ $data != null ? method_field('PUT') : method_field('POST') }}
@php $category = App\Models\Category::all(); @endphp
@role('admin')
@elserole('vendor')
{{ $data ? ($data->status == 1 ? 'Published' : 'Draft') : 'Pending' }} @endrole

Variation

@if ($data) @if ($data->variation->isNotEmpty()) @foreach ($data->variation as $variation) @php $attr = App\Models\AttributeValue::find( $variation->pivot->attribute_value_id, ); @endphp


@endforeach @endif @endif
@endsection @push('css') @endpush @push('js') @endpush