@extends('layouts.layoutMaster') @section('title', ($model->id ? 'Update' : 'Create') . ' Config') @php $m = 'App\\Models\\Config'; $labels = Helper::getModelLabels($m); $breadcrumbs = [ ['url' => route('dashboard'), 'label' => 'Dashboard'], ['url' => route('config.index'), 'label' => 'Config'], ]; if ($model->id) { $breadcrumbs[] = [ 'url' => route('config.show', ['config' => $model->id]), 'label' => $model->key, ]; $breadcrumbs[] = [ 'url' => route('config.edit', ['config' => $model->id]), 'label' => 'Update Config', ]; } else { $breadcrumbs[] = [ 'url' => route('config.create'), 'label' => 'Create Config', ]; } @endphp @section('content')
{{ $model->id ? 'Update config information' : 'Fill in the details below to create a new config' }}