%PDF- %PDF-
Direktori : /home/silvzytp/crm-ind-code/resources/views/backend/modules/campaign/ |
Current File : //home/silvzytp/crm-ind-code/resources/views/backend/modules/campaign/edit.blade.php |
@extends('layouts.backend') @section('title', $siteTitle) @push('styles') @endpush @section('content') <div class="row"> <div class="col-12 col-md-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="{{ route(routeName().'.campaigns.update', $edit->id) }}" method="POST"> @csrf @method('PUT') <div class="form-group"> <label for="name" class="required">Name</label> <input type="text" class="form-control" name="name" required value="{{ $edit->name ?? old('name') }}"> @error('name') <span class="text-danger d-block">{{ $message }}</span> @enderror </div> <x-form.selectbox name="status" labelName="Status" error="status" required="required"> @foreach (STATUS as $key=>$value) <option value="{{ $key }}" @isset($edit) {{ $key == $edit->status ? 'selected' : '' }} @endisset>{{ $value }}</option> @endforeach </x-form.selectbox> <div class="text-right"> <button class="btn-sm btn btn-success">Update</button> </div> </form> </div> </div> </div> </div> @endsection @push('scripts') @endpush