@extends('admin.layouts.app') @push('styles_top') @endpush @section('content') {{ trans('admin/main.create_trend_category') }} {{trans('admin/main.dashboard')}} {{ trans('admin/main.create_trend_category') }} {{ csrf_field() }} {{ trans('/admin/main.category') }} {{ trans('admin/main.choose_category') }} @foreach($categories as $category) @if(!empty($category->subCategories) and count($category->subCategories)) @foreach($category->subCategories as $subCategory) category_id == $subCategory->id) selected="selected" @endif>{{ $subCategory->title }} @endforeach @else category_id == $category->id) selected="selected" @endif>{{ $category->title }} @endif @endforeach @error('category_id') {{ $message }} @enderror {{ trans('admin/main.trend_icon') }} @error('icon') {{ $message }} @enderror {{ trans('admin/main.trend_color') }} @error('color') {{ $message }} @enderror {{ trans('admin/main.submit') }} @endsection @push('scripts_bottom') @endpush