관리-도구
편집 파일: edit.blade.php
@extends('layouts.app') @section('content') <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header"> <span class="panel-title">{{ _lang('Update User') }}</span> </div> <div class="card-body"> <form method="post" class="validate" autocomplete="off" action="{{ action('UserController@update', $id) }}" enctype="multipart/form-data"> {{ csrf_field()}} <input name="_method" type="hidden" value="PATCH"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Name') }}</label> <input type="text" class="form-control" name="name" value="{{ $user->name }}" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Email') }}</label> <input type="text" class="form-control" name="email" value="{{ $user->email }}" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Password') }}</label> <input type="password" class="form-control" name="password" value=""> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('User Type') }}</label> <select class="form-control select2 auto-select" data-selected="{{ $user->user_type }}" name="user_type" required> <option value="">{{ _lang('Select One') }}</option> <option value="admin">{{ _lang('Admin') }}</option> <option value="user">{{ _lang('User') }}</option> <option value="company">{{ _lang('Company') }}</option> <option value="customer">{{ _lang('Candidate') }}</option> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Employer Spotlight') }}</label> <select class="form-control select2 auto-select" data-selected="{{ $user->employer_spotlight }}" name="employer_spotlight"> <option value="1" >Yes</option> <option value="0" >No</option> </select> </div> </div> <div class="col-md-12"> <div class="form-group"> <label class="control-label">{{ _lang('Candidate Spotlight') }}</label> <select class="form-control select2 auto-select" data-selected="{{ $user->candidate_spotlight }}" name="candidate_spotlight"> <option value="1" >Yes</option> <option value="0" >No</option> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Status') }}</label> <select class="form-control select2 auto-select" data-selected="{{ $user->status }}" name="status" required> <option value="">{{ _lang('Select One') }}</option> <option value="1">{{ _lang('Active') }}</option> <option value="0">{{ _lang('Inactive') }}</option> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Profile Picture') }}</label> <input type="file" class="form-control dropify" name="profile_picture"> </div> </div> <div class="col-md-12"> <div class="form-group"> <button type="submit" class="btn btn-primary">{{ _lang('Update') }}</button> </div> </div> </div> </form> </div> </div> </div> </div> @endsection