@extends('layouts.app') @section('content')

Instructions List

@foreach ($instructions as $instruction) @endforeach
Title Background Day Num Active Action
{{ $instruction->vTitle }} @if ($instruction->vBackgroundImg) {{ $instruction->vTitle }} @else No Image @endif @if ($instruction->day) {{ $instruction->day->vDay }} @endif {{ $instruction->Num }} user()->bContent == 1 ? '':'disabled'}} type="checkbox" class="js-switch active-toggle" data-id="{{ $instruction->iInstructionID }}" value="1" {{ $instruction->bActive ? 'checked' : '' }} /> @if (Auth::guard('admin')->user()->bContent == 1) @endif

{{ isset($selectedInstruction) ? 'Edit' : 'Create' }} Instruction

@csrf
@error('iDayID') {{ $message }} @enderror
@error('vTitle') {{ $message }} @enderror
Image Link Must be under 100KB. Only jpg format is allowed. @error('vBackgroundImg') {{ $message }} @enderror
@error('Num') {{ $message }} @enderror

@if (Auth::guard('admin')->user()->bContent == 1) @endif
@endsection @push('scripts') @endpush