@extends('backend.layouts.app') @section('title', app_name() . ' | ' .'Update clipart') @section('content') {{ html()->modelForm($clipart, 'PATCH', route('admin.clipart.update', $clipart->id))->class('form-horizontal')->attribute('enctype', 'multipart/form-data')->open() }}

Clipart management Edit clipart


Metadata
{{ html()->label('Name')->class('col-md-2 form-control-label')->for('name') }}
{{ html()->text('name') ->class('form-control') ->placeholder('name') ->attribute('maxlength', 254) ->required() }}
{{ html()->label('Description')->class('col-md-2 form-control-label')->for('description') }}
{{ html()->textarea('description') ->class('form-control') ->placeholder('Description') ->required() }}
{{ html()->label('Citations')->class('col-md-2 form-control-label')->for('citations') }}
{{ html()->textarea('citations') ->class('form-control richtext') ->placeholder('Citations') }}
{{ html()->label('Paid')->class('col-md-2 form-control-label') }}
{{ html()->label( html()->checkbox('paid') ->class('switch-input') ->id('paid') . '') ->class('switch switch-label switch-pill switch-primary mr-2') ->for('paid') }} {{ html()->label('Paid')->for('paid') }}
{{ html()->label('Tags')->for('tags[]')->class('col-md-2 form-control-label') }}
{{ html()->multiselect('tags[]', $tags->pluck('text', 'id'), $clipart->tags->pluck('id')) ->class('form-control') }}
Files
@if($clipart->colourways->where('colour_name', 'baseline')->first()) {{$clipart->name.' '.$clipart->colourways->where('colour_name', 'baseline')->first()->colour}} @else (not set) @endif {{ html()->label('Baseline')->for('baseline')->attribute('style', 'font-weight:bold')->class('col-auto') }}
{{ html()->file('baseline')->class('form-control') }}
@if($clipart->colourways->where('colour_name', 'outline')->first()) {{$clipart->name.' '.$clipart->colourways->where('colour_name', 'outline')->first()->colour}} @else (not set) @endif {{ html()->label('Outline')->for('outline')->attribute('style', 'font-weight:bold')->class('col-auto') }}
{{ html()->file('outline')->class('form-control') }}
@if($clipart->colourways->where('colour_name', 'blue')->first()) {{$clipart->name.' '.$clipart->colourways->where('colour_name', 'blue')->first()->colour}} @else (not set) @endif {{ html()->label('Blue')->for('blue')->attribute('style', 'font-weight:bold; color:Blue')->class('col-auto') }}
{{ html()->file('blue')->class('form-control') }}
@if($clipart->colourways->where('colour_name', 'green')->first()) {{$clipart->name.' '.$clipart->colourways->where('colour_name', 'green')->first()->colour}} @else (not set) @endif {{ html()->label('Green')->for('green')->attribute('style', 'font-weight:bold; color:DarkGreen')->class('col-auto') }}
{{ html()->file('green')->class('form-control') }}
@if($clipart->colourways->where('colour_name', 'grey')->first()) {{$clipart->name.' '.$clipart->colourways->where('colour_name', 'grey')->first()->colour}} @else (not set) @endif {{ html()->label('Grey')->for('grey')->attribute('style', 'font-weight:bold; color:DarkGray')->class('col-auto') }}
{{ html()->file('grey')->class('form-control') }}
@if($clipart->colourways->where('colour_name', 'purple')->first()) {{$clipart->name.' '.$clipart->colourways->where('colour_name', 'purple')->first()->colour}} @else (not set) @endif {{ html()->label('Purple')->for('purple')->attribute('style', 'font-weight:bold; color:DarkViolet')->class('col-auto') }}
{{ html()->file('purple')->class('form-control') }}
@if($clipart->colourways->where('colour_name', 'red')->first()) {{$clipart->name.' '.$clipart->colourways->where('colour_name', 'red')->first()->colour}} @else (not set) @endif {{ html()->label('Red')->for('red')->attribute('style', 'font-weight:bold; color:DarkRed')->class('col-auto') }}
{{ html()->file('red')->class('form-control') }}
{{--
--}} {{--
--}} {{-- {{ html()->label('Red')->for('red')->attribute('style', 'color:DarkRed; font-weight:bold') }}--}} {{-- {{ html()->file('red')->class('form-control') }}--}} {{--
--}} {{--
--}}
@if($clipart->colourways->where('colour_name', 'yellow')->first()) {{$clipart->name.' '.$clipart->colourways->where('colour_name', 'yellow')->first()->colour}} @else (not set) @endif {{ html()->label('Yellow')->for('yellow')->attribute('style', 'font-weight:bold; color:Gold')->class('col-auto') }}
{{ html()->file('yellow')->class('form-control') }}
{{--
--}} {{--
--}} {{-- {{ html()->label('Yellow')->for('yellow')->attribute('style', 'color:Gold; font-weight:bold') }}--}} {{-- {{ html()->file('yellow')->class('form-control') }}--}} {{--
--}} {{--
--}}
{{ html()->closeModelForm() }} @endsection @push('after-scripts') @endpush @push('after-styles') @endpush