@extends('layouts.app') @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Hızlı Talep Tipleri' => '/operation/quick/demand/change/ticket-type', 'Aylık Hızlı Talep' => '/operation/quick/monthly/demand', ], ]) !!} @endsection @section('content')
    @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
@if ($errors->any()) @include('components.error-modal-second') @endif @if (session('error')) @include('components.error-modal') @endif @if (session('success')) @include('components.success-modal') @endif @endsection @section('javascript') @endsection