@extends('admin.layouts.admin') @section('content') Categories Category Category @if($action == 'Edit') @else @endif @csrf @if(isset($record->id)) @php $id=$record->id @endphp @else @php $id=0; @endphp @endif {{ $title }} @if(isset($record->name)) @php $name=$record->name @endphp @elseif(old('name')) @php $name=old('name'); @endphp @else @php $name=''; @endphp @endif Name * @if(isset($record->parent_id)) @php $parent_id=$record->parent_id @endphp @elseif(old('parent_id')) @php $parent_id=old('parent_id'); @endphp @else @php $parent_id=0; @endphp @endif Parent -- Select -- @foreach($categories as $category) id) ? 'selected' : '' !!}>{{ $category->name }} @endforeach @if(isset($record->alias)) @php $alias=$record->alias @endphp @elseif(old('alias')) @php $alias=old('alias'); @endphp @else @php $alias=''; @endphp @endif Alias @if(isset($record->description)) @php $description=$record->description @endphp @elseif(old('description')) @php $description=old('description'); @endphp @else @php $description=''; @endphp @endif Description {!! $description !!} @if(isset($record->rank)) @php $rank=$record->rank @endphp @elseif(old('rank')) @php $rank=old('rank'); @endphp @else @php $rank=''; @endphp @endif Rank @if(isset($record->active)) @php $active=$record->active @endphp @elseif(old('active')) @php $active=old('active'); @endphp @else @php $active=1; @endphp @endif Active Category SEO Detail @if(isset($record->meta_title)) @php $meta_title=$record->meta_title @endphp @elseif(old('meta_title')) @php $meta_title=old('meta_title'); @endphp @else @php $meta_title=''; @endphp @endif Meta Title @if(isset($record->meta_keyword)) @php $meta_keyword=$record->meta_keyword @endphp @elseif(old('meta_keyword')) @php $meta_keyword=old('meta_keyword'); @endphp @else @php $meta_keyword=''; @endphp @endif Meta Keyword @if(isset($record->og_title)) @php $og_title=$record->og_title @endphp @elseif(old('og_title')) @php $og_title=old('og_title'); @endphp @else @php $og_title=''; @endphp @endif OG Title @if(isset($record->meta_description)) @php $meta_description=$record->meta_description @endphp @elseif(old('meta_description')) @php $meta_description=old('meta_description'); @endphp @else @php $meta_description=''; @endphp @endif Meta Description {!! $meta_description !!} @if(isset($record->og_description)) @php $og_description=$record->og_description @endphp @elseif(old('og_description')) @php $og_description=old('og_description'); @endphp @else @php $og_description=''; @endphp @endif OG Description {!! $og_description !!} Submit @endsection @push('scripts') @endpush