@extends('admin.layouts.app') @section('content')

{{ $section->title }}

@if($productaddon) @foreach( $productaddon as $result) @if($result->category->category_name) @else @endif @if($result->subcategory->name) @else @endif @if($result->product->product_name) @else @endif @endforeach @endif
ID Category Name Sub Category Name Product Name Addon Name Addon price Addon Image Addon Description Status Action
{{$result->id }} {{$result->category->category_name }} {{$result->subcategory->name ?? '' }} {{$result->product->product_name }} {{ucfirst($result->name)}} {{$result->price}} {!! $result->description !!}
    @if($result->status == 1)
  • Active
  • @else
  • Inactive
  • @endif
@php $prodID = Crypt::encrypt($result->id); @endphp
{{ Form::open(['route' => ['productAddon.destroy', $result->id], 'method' => 'delete']) }} {{ Form::button('', [ 'type' => 'submit', 'class' => 'btn btn-dim btn-danger']) }} {{ Form::close() }}
@endsection