@extends('layouts.app') @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Müşterilerim' => '/operation/my-customers', ], ]) !!} @endsection @section('content') {{-- @include('components.sidebar') @include('components.profile') --}}
{{--
--}}
    @if (count($head_offices) > 0) @foreach ($head_offices as $head_office)
  1. {{-- {{ route('operation.myCustomersDetail', ['id' => $head_office->id, 'type' => 'head']) }} --}}

    {{ $head_office->office_name }}

    {{ $head_office->city }}

    {{ $head_office->district }}

    {{ $head_office->office_phone }}

    {{ $head_office->office_mail }}

    {{ $head_office->authorized_person }}

    {{ $head_office->authorized_person_title }}

    {{-- todo eger departmani yoksa buton gozuksun ama tiklanamaz olsun veya hic departman olmadigi belirtilsin --}} @php if ($head_office->operation_user_id != auth()->user()->id) { $departmentsCount = count( $head_office->user->departments->where( 'operation_user_id', auth()->user()->id, ), ); } else { $departmentsCount = count($head_office->user->departments); } @endphp {{--
    Firma
    --}}
  2. @endforeach @endif
    @if (count($head_offices) <= 0 && count($branch_offices) <= 0) Hiç Veri Bulunamadı @endif
{{ count($head_offices) }}
@include('components.showImage') @if (session('error')) @include('components.error-modal') @endif @if (session('success')) @include('components.success-modal') @endif @endsection @section('javascript') @endsection