@extends('layouts.app') @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Departmanlar' => '/company/departments', ], ]) !!} @endsection @section('content')
{{-- filter --}}
{{-- search input --}}
Yeni Departman Ekle
@foreach ($departments as $department)
  • {{ $department->name }}

    {{ $department->phone }}

    {{ $department->email }}

    {{ $department->user->full_name }}

    @php $payment_type = $department->payment_type; if ($payment_type == 'hourly') { $payText = 'Saatlik'; } elseif ($payment_type == 'daily') { $payText = 'Günlük'; } elseif ($payment_type == 'monthly') { $payText = 'Aylık'; } @endphp {{ $payText }}

    {{-- @php if ($branch->approval_status == '1' || $branch->approval_status == null) { if ($branch->status == '1') { $status = 'Aktif'; $color = 'bg-green-500'; } else { $status = 'Pasif'; $color = 'bg-red-500'; } } else { if ($branch->approval_status == '2') { $status = 'Onay Bekleniyor'; $color = 'bg-orange-500'; } elseif ($branch->approval_status == '1') { $status = 'Onaylandı'; $color = 'bg-green-500'; } else { $status = 'Reddedildi'; $color = 'bg-red-500'; } } @endphp
    {{ $status }}
    @if ($branch->iframe) @include('components.iframe')
    @csrf
    @endif @if ($branch->user)
    @csrf
    @endif --}} {{--
    @csrf @method('DELETE')
    --}}
  • @endforeach @if (count($departments) <= 0) Hiç Veri Bulunamadı @endif
    {{ count($departments) }}
    @include('components.showImage') @endsection @section('javascript') @endsection