promotion view UI fixed

This commit is contained in:
armiejean 2025-05-20 17:52:58 +08:00
parent 24f5710996
commit 07084d227d
1 changed files with 37 additions and 16 deletions

View File

@ -3,9 +3,11 @@
@section('page_title', 'View Promotion')
@section('content')
<div class="container-fluid py-4">
<div class="row justify-content-center">
<div class="card">
<div class="card-header">
<h5 class="mb-0 fw-bold text-dark">View Promotion</h5>
<div class="card-header border-0 bg-transparent">
<h5 class="mb-0">View Promotion</h5>
</div>
<div class="card-body">
@if (session('error'))
@ -14,12 +16,31 @@
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
@endif
<div class="mb-3"><strong>Title:</strong> {{ $promotion['title'] }}</div>
<div class="mb-3"><strong>Type:</strong> {{ $promotion['type'] }}</div>
<div class="mb-3"><strong>Start Date:</strong> {{ $promotion['startDate'] }}</div>
<div class="mb-3"><strong>End Date:</strong> {{ $promotion['endDate'] }}</div>
<div class="mb-3"><strong>Status:</strong> {{ $promotion['status'] }}</div>
<a href="{{ route('promotions') }}" class="btn btn-secondary">Back</a>
<div class="mb-3">
<label class="form-label">Title</label>
<input type="text" class="form-control" value="{{ $promotion['title'] }}" readonly>
</div>
<div class="mb-3">
<label class="form-label">Type</label>
<input type="text" class="form-control" value="{{ $promotion['type'] }}" readonly>
</div>
<div class="mb-3">
<label class="form-label">Start Date</label>
<input type="text" class="form-control" value="{{ $promotion['startDate'] }}" readonly>
</div>
<div class="mb-3">
<label class="form-label">End Date</label>
<input type="text" class="form-control" value="{{ $promotion['endDate'] }}" readonly>
</div>
<div class="mb-3">
<label class="form-label">Status</label>
<input type="text" class="form-control" value="{{ $promotion['status'] }}" readonly>
</div>
<div class="text-end">
<a href="{{ route('promotions') }}" class="btn btn-primary">Back</a>
</div>
</div>
</div>
</div>
</div>
@endsection