Files
new_raffles/Modules/Leave/resources/views/leave/show.blade.php
2025-07-27 17:40:56 +05:45

83 lines
3.1 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container-fluid">
<x-dashboard.breadcumb :title="$title" />
<div class="row">
<div class="col-md-8">
<div class="card card-body p-4">
<div>
<div class="table-responsive">
<table class="table-borderless mb-0 table">
<tbody>
<tr>
<th><span class="fw-medium">Employee Name</span></th>
<td>{{ $leave->employee->first_name }} {{ $leave->employee->middle_name }}
{{ $leave->employee->last_name }}</td>
</tr>
<tr>
<th><span class="fw-medium">Leave Type</span></th>
<td> {{ optional($leave->leaveType)->name }} </td>
</tr>
<tr>
<th><span class="fw-medium">Date</span></th>
<td>
@foreach ($leave->start_date as $dates)
@foreach ($dates as $date)
<li>{{ $date }}</li>
@endforeach
@endforeach
</td>
</tr>
<tr>
<th><span class="fw-medium">Leave Approved Date</span></th>
<td>{{ $leave->leave_approved_date }}</td>
</tr>
<tr>
<th><span class="fw-medium">Total Days</span></th>
<td>{{ $leave->total_days }}</td>
</tr>
<tr>
<th><span class="fw-medium">Leave Approved By</span></th>
<td>{{ $leave->leave_approved_by }}</td>
</tr>
<tr>
<th><span class="fw-medium">Duration</span></th>
<td>{{ $leave->getDuration() }}</td>
</tr>
<tr>
<th><span class="fw-medium">Leave Approved Date</span></th>
<td>{{ $leave->employee_id }}</td>
</tr>
<tr>
<th><span class="fw-medium">Status</span></th>
<td>{{ $leave->status_name['status'] }}</td>
</tr>
<tr>
<th><span class="fw-medium">Description</span></th>
<td>{{ $leave->description }}</td>
</tr>
<tr>
<th><span class="fw-medium">Remark</span></th>
<td>{{ $leave->remarks }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="mb-3 text-end">
<a href="{{ route('leave.index') }}" class="btn btn-secondary w-sm">Back</a>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush