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