@php
$statuses = [
'1' => ['label' => 'Approved', 'class' => 'success'],
'3' => ['label' => 'Paid', 'class' => 'primary'],
];
$status = $statuses[$accountOfficeExpense->status] ?? ['label' => '', 'class' => ''];
$disabled = in_array($accountOfficeExpense->status, ['3']) ? 'disabled' : '';
@endphp
@extends('admin.layouts.layouts')
@section('title', 'Details | Office Expense')
@section('page-css')
@endsection
@section('content')
{{-- Change status modal --}}
{{-- Expense Details --}}
Location:
{{ $accountOfficeExpense->location?->name ?? '-' }}
{{--
Expense Period:
{{ date('d-m-Y', strtotime($accountOfficeExpense->from)) }} To
{{ date('d-m-Y', strtotime($accountOfficeExpense->to)) }}
--}}
Employee Name:
{{ $accountOfficeExpense->createdBy?->name ?? '-' }}
@if ($accountOfficeExpense->status == '3')
Voucher No.:
{{ $accountOfficeExpense->voucher_no ?? '' }}
@endif
Requested Amount:
{{ $accountOfficeExpense->total_amount ?? 0 }}
Paid Amount:
{{ $accountOfficeExpense->paid_amount ?? 0 }}
Payment Mode:
{{ ucfirst($accountOfficeExpense->payment_mode) ?? '-' }}
@if (strtolower($accountOfficeExpense->payment_mode) == 'online' && isset($accountOfficeExpense->bank))
Bank:
{{ $accountOfficeExpense->bank?->name ?? '' }}
({{ $accountOfficeExpense->bank?->account_no ?? '' }})
@endif
{{-- Expense Items --}}
| # |
Type |
Sub Type |
Amount |
{{-- Payment Mode | --}}
Document |
{{-- Date | --}}
Remark |
{{-- Expense Histories --}}
| # |
Status |
Remark |
Action Date |
Action By |
@endsection
@section('page-js')
@endsection