@extends('admin.layout.master') @section('content')

{{ __('obs.daily') }} {{ __('obs.in') }} {{ __('obs.out') }} {{ __('obs.report') }}

@if(count($attendances) >0)
@include('payroll.includes.report_print_excel_button')
@endif
@if(count($attendances) >0)
@php $i = 1; @endphp @foreach ($attendances->chunk(25) as $chunk_data)
{{-- {!! $print['head'] !!} --}} @include('payroll.report_header', [ 'text_align' => "text-center", 'report_title' => __('obs.daily') . ' ' . __('obs.in') . ' ' . __('obs.out') . ' ' . __('obs.report') . ' ' . carbon()->parse($date)->format('d-m-Y'), 'department_info' => $department ])
@foreach ($chunk_data as $attendance) @php $count = count($attendance['attendances']); $first = true; @endphp @if ($count > 0) @foreach ($attendance['attendances'] as $list) @if ($first) @endif @if ($first) @endif @php $first = false; @endphp @endforeach @else @endif @endforeach
{{ __('obs.sl') }} {{ __('obs.code') }} {{ __('obs.name') }} {{ __('obs.designation') }} {{ __('obs.in') }} {{ __('obs.out') }} {{ __('obs.hour') }} Total Hour
{{ $i++ }} {{ $attendance['code'] }} {{ $attendance['name'] }} {{ $attendance['designation'] }} {{ $list['in_time'] ?? '--' }} {{ $list['out_time'] ?? '--' }} {{ $list['working_hours'] ?? '--' }} {{ $attendance['working_hours'] > 0 ? $attendance['working_hours'] : null }}
{{ $i++ }} {{ $attendance['code'] }} {{ $attendance['name'] }} {{ $attendance['designation'] }} -- -- -- {{ $attendance['working_hours'] > 0 ? $attendance['working_hours'] : null }}
@endforeach
@else @if(request()->get('search') !=null)

{{__('obs.no')}} {{__('obs.data')}} {{__('obs.found')}}

@endif @endif @endsection @section('script') {{-- --}} @endsection