%PDF- %PDF-
Direktori : /home/silvzytp/calling_code/resources/views/backend/pages/status/ |
Current File : /home/silvzytp/calling_code/resources/views/backend/pages/status/form.blade.php |
@extends('layouts.backend') @section('title', $siteTitle) @section('action') @permission('app.agents.create') <a href="{{ route(routeName().'.status.create') }}" class="btn btn-sm btn-primary"> <i class="ti-plus fs-ism fw-800"></i> Add Status</a> @endpermission @endsection @push('styles') @endpush @section('content') <div class="row"> <div class="col-12 col-sm-6 mx-auto"> <div class="card"> <div class="card-header"> <h4 class="mb-0 card-title">{{ $siteTitle }}</h4> </div> <div class="card-body"> <form action="{{ isset($status) ? route(routeName().'.status.update', $status->id) : route(routeName().'.status.store') }}" method="POST"> @csrf @isset($status) @method('PUT') @endisset <x-form.inputbox name="name" labelName="Status Name" error="name" value="{{ $status->name ?? old('name') }}" required="required"/> <x-form.selectbox name="status" labelName="Is Published" error="status" required="required"> @foreach (STATUS as $key=>$value) <option value="{{ $key }}" @isset($status) {{ STATUS[$key] == $status->status ? 'selected' : '' }} @endisset>{{ $value }}</option> @endforeach </x-form.selectbox> <div class="text-right"> <button type="submit" class="btn btn-sm btn-success">Submit</button> </div> </form> </div> </div> </div> </div> @endsection @push('scripts') @endpush