관리-도구
편집 파일: update.blade.php
@extends('layouts.app') <style> .jobs-pinned-by-admin { position: absolute; top: 17px; right: 16px; } .container { position: relative; } </style> @section('content') <div class="container"> <h2>Update Job</h2> <form action="{{ route('jobposts.update', $job->id) }}" method="POST" enctype="multipart/form-data"> @csrf @method('PUT') <!-- Form fields for editing job post --> <div class="form-group"> <label for="job_title">Job Title</label> <input type="text" name="job_title" class="form-control" value="{{ $job->job_title }}" required> </div> <div class="form-group"> <label for="job_description">Job Description</label> <textarea name="job_description" class="form-control" required>{{ $job->job_description }}</textarea> </div> <div class="form-group"> <label for="keywords">Keywords</label> <input type="text" name="keywords" class="form-control" value="{{ $job->keywords }}" > </div> <div class="form-group"> <label for="min_experience">Min Experience</label> <input type="number" name="min_experience" class="form-control" value="{{ $job->min_experience }}" > </div> <div class="form-group"> <label for="max_experience">Max Experience</label> <input type="number" name="max_experience" class="form-control" value="{{ $job->max_experience }}" > </div> <div class="form-group"> <label for="min_salary">Min Salary</label> <input type="number" name="min_salary" class="form-control" value="{{ $job->min_salary }}" > </div> <div class="form-group"> <label for="max_salary">Max Salary</label> <input type="number" name="max_salary" class="form-control" value="{{ $job->max_salary }}" > </div> <div class="form-group"> <label for="company_name">Company Name</label> <input type="text" name="company_name" class="form-control" value="{{ $job->company_name }}" > </div> <div class="form-group"> <label for="workplace_type">Workplace Type</label> <input type="text" name="workplace_type" class="form-control" value="{{ $job->workplace_type }}" > </div> <div class="form-group"> <label for="job_location">Job Location</label> <input type="text" name="job_location" class="form-control" value="{{ $job->job_location }}" > </div> <div class="form-group"> <label for="job_type">Job Type</label> <input type="text" name="job_type" class="form-control" value="{{ $job->job_type }}"> </div> <div class="form-group"> <label for="no_of_vacancy">No of Vacancy</label> <input type="number" name="no_of_vacancy" class="form-control" value="{{ $job->no_of_vacancy }}"> </div> <div class="form-group"> <label for="industry">Industry</label> <input type="text" name="industry" class="form-control" value="{{ $job->industry }}" > </div> <div class="form-group"> <label for="qualification">Qualification</label> <input type="text" name="qualification" class="form-control" value="{{ $job->qualification }}"> </div> <div class="form-group"> <label for="contact_person">Contact Person</label> <input type="text" name="contact_person" class="form-control" value="{{ $job->contact_person }}"> </div> <div class="form-group"> <label for="mobile">Mobile</label> <input type="text" name="mobile" class="form-control" value="{{ $job->mobile }}"> </div> <div class="jobs-pinned-by-admin"> <label>Pinned Job</label> <select name="pinned_jobs" > <option value="0" >No</option> <option value="1" >Yes</option> </select> </div> <div class="form-group"> <label for="job_post_expiry_date">Job Post Expiry Date</label> <input type="date" name="job_post_expiry_date" class="form-control" value="{{ $job->job_post_expiry_date }}" > </div> <div class="form-group"> <label for="job_post_expiry_date">Job Link Space</label> <input type="text" name="link_space" class="form-control" value="{{ $job->link_space }}" > </div> <div class="form-group"> <label for="company_profile_image">Company Profile Image</label> <input type="file" name="company_profile_image" class="form-control"> @if ($job->company_profile_image) <img src="{{ asset('uploads/companyprofiles/' . $job->company_profile_image) }}" alt="Company Profile Image" width="100"> @endif </div> <button type="submit" class="btn btn-primary">Update Job Post</button> </form> </div> @endsection