@extends('layouts.app')

@section('title','Add Category')

@section('content')
<div class="row">
	<div class="col-md-12">
		<div class="panel panel-default">
			<div class="panel-heading">Add a new Category</div>
			<div class="panel-body">
				@include('errors.form')
				<form enctype="multipart/form-data" method="POST" action="{{ url('/admin/category/add') }}">
					{{ csrf_field() }}
					<input type="hidden" name="_method" value="PUT">
					<div class="form-group">
						<label>Category Name</label>
						<input type="text" name="name" class="form-control" required>
					</div>
					<div class="form-group">
						<label>Description</label>
						<textarea name="description" class="form-control" required></textarea>
					</div>
					<div class="form-group">
						<label>Job Titles (seperated by enter)</label>
						<textarea name="job_titles" class="form-control" required></textarea>
					</div>
					<div class="form-group">
						<label>Category Image</label>
						<input type="file" name="image" class="btn btn-info" required>
					</div>
					<input type="submit" name="submit" value="Add Category" class="btn btn-success">
				</form>
			</div>
		</div>
	</div>
</div>
@endsection
