[24a616f] | 1 | @extends('layouts.app')
|
---|
| 2 |
|
---|
| 3 | @section("title", "Documents - Create new")
|
---|
| 4 |
|
---|
| 5 | @section('pageTitle', 'Create document')
|
---|
| 6 |
|
---|
| 7 | @section('content')
|
---|
| 8 |
|
---|
| 9 | <div class="page-header">
|
---|
| 10 | <nav aria-label="breadcrumb" class="d-flex align-items-start">
|
---|
| 11 | <ol class="breadcrumb">
|
---|
| 12 | <li class="breadcrumb-item">
|
---|
| 13 | <a href="{{ url('dashboard/documents') }}">Documents</a>
|
---|
| 14 | </li>
|
---|
| 15 | <li class="breadcrumb-item active" aria-current="page">New document</li>
|
---|
| 16 | </ol>
|
---|
| 17 | </nav>
|
---|
| 18 | </div>
|
---|
| 19 |
|
---|
| 20 | <div class="row">
|
---|
| 21 | <div class="col-md-12">
|
---|
| 22 |
|
---|
| 23 | <div class="row">
|
---|
| 24 | <div class="col-lg-12 col-md-12">
|
---|
| 25 | <div class="tab-content" id="v-pills-tabContent">
|
---|
| 26 | <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
|
---|
| 27 | <div class="card">
|
---|
| 28 | <div class="card-body">
|
---|
| 29 | <h6 class="card-title">New document</h6>
|
---|
| 30 | <form action="{{ route("dashboard.documents.store") }}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
|
---|
| 31 | @csrf
|
---|
| 32 | <div class="row">
|
---|
| 33 | <div class="col-md-6">
|
---|
| 34 | <div class="form-group">
|
---|
| 35 | <label for="exampleFormControlSelect1">Department</label>
|
---|
| 36 | @if($departments->count())
|
---|
| 37 | <select class="form-control" name="department" required>
|
---|
| 38 | <option></option>
|
---|
| 39 | @foreach ($departments as $department)
|
---|
| 40 | <option value="{{ $department->id }}" {{ (old("department") == $department->id ? "selected" : "") }}>{{ $department->name }}</option>
|
---|
| 41 | @endforeach
|
---|
| 42 | @else
|
---|
| 43 | <p>You haven't created any departments yet. <a class="text-primary" href="{{ route("dashboard.departments.create") }}">Create now.</a></p>
|
---|
| 44 | @endif
|
---|
| 45 | </select>
|
---|
| 46 | </div>
|
---|
| 47 | </div>
|
---|
| 48 | <div class="col-md-6">
|
---|
| 49 | <div class="form-group">
|
---|
| 50 | <label>Archive ID</label>
|
---|
| 51 | <input type="text" name="arch_id" value="{{ old('arch_id') }}" class="form-control" placeholder="Archive ID" required>
|
---|
| 52 | </div>
|
---|
| 53 | </div>
|
---|
| 54 | </div>
|
---|
| 55 | <div class="row">
|
---|
| 56 | <div class="col-md-6">
|
---|
| 57 | <div class="form-group">
|
---|
| 58 | <label>Name</label>
|
---|
| 59 | <input type="text" name="name" value="{{ old('name') }}" class="form-control" placeholder="Name" required>
|
---|
| 60 | </div>
|
---|
| 61 | </div>
|
---|
| 62 | <div class="col-md-6">
|
---|
| 63 | <div class="form-group">
|
---|
| 64 | <label>Description</label>
|
---|
| 65 | <textarea class="form-control" name="description" value='{{ old("description") }}' rows="3"></textarea>
|
---|
| 66 | </div>
|
---|
| 67 | </div>
|
---|
| 68 | </div>
|
---|
| 69 | <div class="row">
|
---|
| 70 | <div class="col-md-6">
|
---|
| 71 | <input type="file" class="form-control" id="file-item" name="file_item[]" multiple>
|
---|
| 72 | </div>
|
---|
| 73 | </div>
|
---|
| 74 | <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10">
|
---|
| 75 | </form>
|
---|
| 76 | </div>
|
---|
| 77 | </div>
|
---|
| 78 | </div>
|
---|
| 79 | </div>
|
---|
| 80 | </div>
|
---|
| 81 | </div>
|
---|
| 82 | </div>
|
---|
| 83 | </div>
|
---|
| 84 | @endsection
|
---|