52 lines
2.5 KiB
PHP
52 lines
2.5 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('page_title', 'Add Photo Slider')
|
|
|
|
@section('content')
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="mb-0 fw-bold text-dark">Add New Photo Slider</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (session('error'))
|
|
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
|
{{ session('error') }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
</div>
|
|
@endif
|
|
<form action="{{ route('photo-slider.store') }}" method="POST" enctype="multipart/form-data">
|
|
@csrf
|
|
<div class="mb-3">
|
|
<label for="title" class="form-label">Title</label>
|
|
<input type="text" class="form-control" id="title" name="title" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="description" class="form-label">Description</label>
|
|
<textarea class="form-control" id="description" name="description" rows="3"></textarea>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="type" class="form-label">Type</label>
|
|
<input type="text" class="form-control" id="type" name="type" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="image" class="form-label">Image</label>
|
|
<input type="file" class="form-control" id="image" name="image" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="startDate" class="form-label">Start Date</label>
|
|
<input type="datetime-local" class="form-control" id="startDate" name="startDate" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="endDate" class="form-label">End Date</label>
|
|
<input type="datetime-local" class="form-control" id="endDate" name="endDate" required>
|
|
</div>
|
|
<div class="mb-3 form-check">
|
|
<input type="checkbox" class="form-check-input" id="isActive" name="isActive">
|
|
<label class="form-check-label" for="isActive">Active</label>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
<a href="{{ route('photo-slider') }}" class="btn btn-secondary">Cancel</a>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection |