@extends('layouts.app') @section('title', 'Add SPS') @section('content')
@if($method=='POST')
Add SPS
@else
Edit SPS
@endif
Back
{{-- Alert Messages --}} @include('common.alert')
@if($method=='POST')
Add New SPS
@else
Edit SPS
@endif
@csrf @if ($method === 'PUT') @method('PUT') @endif
*
Title
@error('title')
{{ $message }}
@enderror
*
SPS Category
Choose a SPS Category
@if(count($spscategories)>0) @foreach ($spscategories as $spscategory)
id ? "selected" : "" }} {{ $spscategory->id === @$sps->sps_category_id ? 'selected' : '' }}>{{$spscategory->sps_category_name}}
@endforeach @endif
@error('sps_category_id')
{{ $message }}
@enderror
*
Description (Max Character limit is 200)
{{ old('description', $sps->description ?? '') }}
@error('description')
{{ $message }}
@enderror
@endsection @push('script') @endpush