@extends('layouts.admin.app') @section('content')
@include('include.alert')
@if(Auth::user()->role != 'viewer')
Add
@endif
{{-- --}} @foreach($data as $value) {{-- --}} @endforeach
NAME PRICE CATEGORY ACTION
{{ $count++ }} {{ $value->name }} {{ $value->price }} {{ $value->category ?? '-' }} @if(Auth::user()->role != 'viewer') Edit | Delete @else No Action @endif
{{-- @foreach($data as $value) @include('module.story.update') @endforeach --}} @endsection @section('js') @endsection