@extends('admin.layouts.admin') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@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->color_name)) @php $name=$record->color_name @endphp @elseif(old('color_name')) @php $name=old('color_name'); @endphp @else @php $name=''; @endphp @endif
@if(isset($record->color)) @php $name=$record->color @endphp @elseif(old('color')) @php $name=old('color'); @endphp @else @php $name=''; @endphp @endif
@endsection