@extends('layouts.app') @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Servis Faturaları' => '/accounting/service/payrolls', ], ]) !!} @endsection @section('content')
{{-- * MONTH AND YEAR SELECT --}}
    @foreach ($servicePayrollsHeadOffices as $item)
  1. @php $imageUrl = null; if ($item->profile_img) { $imageUrl = $item->profile_img; } elseif ($item->headOffice) { $imageUrl = $item->headOffice->office_logo; } else { $imageUrl = 'resim yok'; } @endphp

    {{ $item->headOffice->office_name }}

    {{ isset($item->roles[0]) ? $item->roles[0]->title : 'no Role' }}

  2. @endforeach
{{--
{{ $servicePayrollsHeadOffices->links('pagination::tailwind') }}
--}}
@endsection @section('javascript') @endsection