@extends('admin.layouts.app') @section('title', 'Edit Category') @section('content')
Back

Edit Category

{{ $category->name }}

@if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf @method('PUT')
Basic Information
Type *
@foreach([ 'temple' => ['icon' => 'fa-landmark', 'bg' => 'rgba(249,115,22,.08)', 'color' => '#fb923c'], 'place' => ['icon' => 'fa-location-dot', 'bg' => 'rgba(59,130,246,.08)', 'color' => '#60a5fa'], 'event' => ['icon' => 'fa-calendar-days', 'bg' => 'rgba(168,85,247,.08)', 'color' => '#c084fc'], 'news' => ['icon' => 'fa-newspaper', 'bg' => 'rgba(6,182,212,.08)', 'color' => '#22d3ee'], 'organization' => ['icon' => 'fa-building-columns', 'bg' => 'rgba(236,72,153,.08)', 'color' => '#f472b6'], 'other' => ['icon' => 'fa-folder', 'bg' => 'rgba(156,163,175,.08)', 'color' => '#9ca3af'], ] as $key => $info) @endforeach
Visibility
Active
Show on frontend
Preview
@php $typeIcons = ['temple'=>'fa-landmark','place'=>'fa-location-dot','event'=>'fa-calendar-days','news'=>'fa-newspaper','organization'=>'fa-building-columns','other'=>'fa-folder']; $typeColors = ['temple'=>'#fb923c','place'=>'#60a5fa','event'=>'#c084fc','news'=>'#22d3ee','organization'=>'#f472b6','other'=>'#9ca3af']; @endphp
{{ $category->name }}
{{ ucfirst($category->type) }}
@endsection