@push('head') @endpush @extends('layouts.app') @section('title', $product->name) @push('head') @endpush @section('main')
{{ dd($product->categories[0]->name) }}

{{ $product->name }}

{{ ($product->price) }}

@auth @if(!Auth::user()->cart()->find($product))
@csrf
@else
@csrf
@endif @if(Auth::user()->isAdmin())
@method('DELETE') @csrf
@endif @endauth

{{ $product->description }}

@endsection()