Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/resources/views/admin/clients/edit.blade.php
Назад
@extends('layouts.admin') @section('content') <div class="content"> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> {{ trans('global.edit') }} {{ trans('cruds.client.title_singular') }} </div> <div class="panel-body"> <form method="POST" action="{{ route("admin.clients.update", [$client->id]) }}" enctype="multipart/form-data"> @method('PUT') @csrf <div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}"> <label class="required" for="first_name">{{ trans('cruds.client.fields.first_name') }}</label> <input class="form-control" type="text" name="first_name" id="first_name" value="{{ old('first_name', $client->first_name) }}" required> @if($errors->has('first_name')) <span class="help-block" role="alert">{{ $errors->first('first_name') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.first_name_helper') }}</span> </div> <div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}"> <label for="last_name">{{ trans('cruds.client.fields.last_name') }}</label> <input class="form-control" type="text" name="last_name" id="last_name" value="{{ old('last_name', $client->last_name) }}"> @if($errors->has('last_name')) <span class="help-block" role="alert">{{ $errors->first('last_name') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.last_name_helper') }}</span> </div> <div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}"> <label for="company">{{ trans('cruds.client.fields.company') }}</label> <input class="form-control" type="text" name="company" id="company" value="{{ old('company', $client->company) }}"> @if($errors->has('company')) <span class="help-block" role="alert">{{ $errors->first('company') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.company_helper') }}</span> </div> <div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}"> <label for="email">{{ trans('cruds.client.fields.email') }}</label> <input class="form-control" type="email" name="email" id="email" value="{{ old('email', $client->email) }}"> @if($errors->has('email')) <span class="help-block" role="alert">{{ $errors->first('email') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.email_helper') }}</span> </div> <div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}"> <label for="phone">{{ trans('cruds.client.fields.phone') }}</label> <input class="form-control" type="text" name="phone" id="phone" value="{{ old('phone', $client->phone) }}"> @if($errors->has('phone')) <span class="help-block" role="alert">{{ $errors->first('phone') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.phone_helper') }}</span> </div> <div class="form-group {{ $errors->has('website') ? 'has-error' : '' }}"> <label for="website">{{ trans('cruds.client.fields.website') }}</label> <input class="form-control" type="text" name="website" id="website" value="{{ old('website', $client->website) }}"> @if($errors->has('website')) <span class="help-block" role="alert">{{ $errors->first('website') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.website_helper') }}</span> </div> <div class="form-group {{ $errors->has('skype') ? 'has-error' : '' }}"> <label for="skype">{{ trans('cruds.client.fields.skype') }}</label> <input class="form-control" type="text" name="skype" id="skype" value="{{ old('skype', $client->skype) }}"> @if($errors->has('skype')) <span class="help-block" role="alert">{{ $errors->first('skype') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.skype_helper') }}</span> </div> <div class="form-group {{ $errors->has('country') ? 'has-error' : '' }}"> <label for="country">{{ trans('cruds.client.fields.country') }}</label> <input class="form-control" type="text" name="country" id="country" value="{{ old('country', $client->country) }}"> @if($errors->has('country')) <span class="help-block" role="alert">{{ $errors->first('country') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.country_helper') }}</span> </div> <div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}"> <label for="status_id">{{ trans('cruds.client.fields.status') }}</label> <select class="form-control select2" name="status_id" id="status_id"> @foreach($statuses as $id => $entry) <option value="{{ $id }}" {{ (old('status_id') ? old('status_id') : $client->status->id ?? '') == $id ? 'selected' : '' }}>{{ $entry }}</option> @endforeach </select> @if($errors->has('status')) <span class="help-block" role="alert">{{ $errors->first('status') }}</span> @endif <span class="help-block">{{ trans('cruds.client.fields.status_helper') }}</span> </div> <div class="form-group"> <button class="btn btn-danger" type="submit"> {{ trans('global.save') }} </button> </div> </form> </div> </div> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка