@extends('layouts.layout') @section('title', 'Manage Sub Category') @section('content')

All Sub Category have also a base Category

@if(Session::has('success')) @elseif(count($errors) > 0) @endif
Sub Category
@php $i = 1; @endphp @foreach($subcat as $scat) @endforeach
#ID Sub Category Name Base Category Price Action
{{ $i++ }} {{ $scat->name }} @foreach($cats as $c) @if($c->id == $scat->base_cat) {{ $c->name }} @endif @endforeach @if($scat->price == 0) {{ "Free" }} @else @foreach($curr as $cr) @if($scat->currency == $cr->id ) {{ $cr->name }} {{ $scat->price }} @endif @endforeach @endif Edit Add Question View Question {!! Form::open(['route'=>['subcategory.destroy',$scat->id],'method'=>'DELETE']) !!} {!! Form::close() !!}
{{ $subcat->links() }}
{{---------------------------}} {{-------------------------}}
@endsection