@extends('admin.layouts.app') @section('title', 'Add Attribute ') @section('content')

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

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

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

@csrf {{ $data != null ? method_field('PUT') : '' }}
hasRole('vendor') ? 'readonly' : '' }}> {!! $errors->first('name', '

:message

') !!}

Add New Variations


@if ($data) @foreach ($data->attrValues as $item)
@if(Auth::user()->hasRole('admin') || $item->user_id == Auth::id()) @endif
@endforeach @endif
0%
@endsection @push('css') @endpush @push('js') @endpush