@extends('admin.layouts.layouts') @section('title', 'Details | Employee Conveyance Entry') @section('content')
Conveyance Details
Conveyance Month:
{{ date('F Y', strtotime($conveyance->conveyance_month)) ?? '-' }}
Total Amount:
{{ number_format($conveyance->total_amount, 2) }}
Created At:
{{ $conveyance->created_at->format('d-m-Y') }}
Location:
{{ $conveyance->location?->name }}
Payment Mode:
{{ $conveyance->payment_mode ?? '-' }}
Created By:
{{ $conveyance->createdBy?->name }}
Employee Conveyances
@if (!isset($conveyance->conveyanceItems) || $conveyance->conveyanceItems->isEmpty())

Records not found!

@else
@foreach ($conveyance->conveyanceItems as $employeeConveyance) @php $conveyanceType = $employeeConveyance->conveyance_type ?? ''; @endphp @endforeach
Sr. Employee Code Conveyance Type Days/Amount Amount
{{ $loop->iteration }} {{ $employeeConveyance->employee->employee_name ?? '-' }} ({{ $employeeConveyance->employee->employeeDesignation->name ?? '' }}) {{ $employeeConveyance->employee->employee_code ?? '-' }} {{ $conveyanceType }} @if ($conveyanceType == 'Daily') {{ $employeeConveyance->conveyance_days ?? 0 }} @else {{ number_format($employeeConveyance->total_amount, 2) }} @endif {{ number_format($employeeConveyance->total_amount, 2) }}
@endif
@endsection @section('page-js') @endsection