@extends('layouts.admin') @section('title', 'Create Item') @section('subtitle', 'Add a new submission to the repository') @section('content')
arrow_back Back to Items
@csrf

Publication & Placement Settings

Dublin Core Metadata

@foreach($fields as $field) @php $fieldName = 'dc.' . $field->element . ($field->qualifier !== 'none' ? '.' . $field->qualifier : ''); $defaultValue = old('metadata.'.$field->id); if (empty($defaultValue)) { if ($field->element === 'publisher') { $defaultValue = 'Mountain Top University'; } elseif ($field->element === 'date') { $defaultValue = now()->format('d/m/Y'); } } @endphp
@if(in_array($field->element, ['description'])) @elseif($field->element === 'date') @else element === 'title') maxlength="255" @endif placeholder="{{ $field->scope_note ?: 'Enter ' . $fieldName }}" class="w-full border @error('metadata.'.$field->id) border-red-500 focus:ring-red-500 focus:border-red-500 @else border-slate-200 focus:ring-primary focus:border-primary @enderror rounded-xl px-4 py-3 text-sm"> @endif

{{ $field->scope_note }}

@error('metadata.'.$field->id)

error_outline {{ $message }}

@enderror
@endforeach

Files (Bitstreams)

You can select multiple files to upload.

Cancel
@endsection