@extends('layouts.app') @php $month = request()->month ?? now()->format('m'); $year = request()->year ?? now()->format('Y'); @endphp @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Aylık Talepler' => '/operation/monthly-tickets/index', 'Taleplerim' => '/operation/monthly-tickets/customers/demands?month=' . $month . '&year=' . $year, 'Departmanlar' => '/operation/monthly-tickets/customer/' . $customer->id . '/departments?month=' . $month . '&year=' . $year, 'Departman Talepleri' => '/operation/monthly-tickets/customer/' . $customer->id . '/department/' . $department->id . '/demands?month=' . $month . '&year=' . $year, 'Talep Detayı' => '/operation/monthly-tickets/customer/' . $customer->id . '/department/' . $department->id . '/demand/' . $demand->id . '?month=' . $month . '&year=' . $year, ], ]) !!} @endsection @section('content')

{{ \Carbon\Carbon::parse($demand->tickets->date)->isoFormat('D MMMM Y dddd') }} Günü Saat {{ $demand->hour }}

{{-- filters --}}

Talep Detayı

{{ $demand?->tickets?->user?->user_departman?->name }}

{{ $demand?->tickets?->user->full_name }}

{{ $demand->note ?? 'Not yok.' }}

{{ $demand->quantity }} adet {{ $demand->categories->title }}

@php $type = $demand?->tickets?->user->user_departman->payment_type; if ($type == 'hourly') { $text = 'Saatlik'; } elseif ($type == 'daily') { $text = 'Günlük'; } elseif ($type == 'monthly') { $text = 'Aylık'; } @endphp {{ $text }}

@if ($firmPaymentType == 'firm') @if ($demand?->tickets?->user->user_departman->customer_user->roles[0]->name == 'Company') @if ( $demand?->tickets?->user->user_departman->customer_user->customerPersonelCost ?->where('category_id', $demand->categories->id)->first()['category_cost_' . $demand?->tickets?->user->user_departman->payment_type] )

{{ $demand?->tickets?->user->user_departman->customer_user->customerPersonelCost ?->where('category_id', $demand->categories->id)->first()['category_cost_' . $demand?->tickets?->user->user_departman->payment_type] }}

@endif @endif @endif

Filtreler

{{--
--}}

Çalışan Seçin

@foreach ($favoritedUsers as $user) @if ($user->user->personelUser) @php if ($user->user->departments_added_to_favorites) { $checkFavori = false; foreach ($user->user->departments_added_to_favorites as $key => $favori) { if ($favori->customer_id = $user->user->customer) { $checkFavori = true; } } } @endphp @endif @endforeach
@csrf

Seçilen Çalışanlar

@if (count($personels) > 0) @foreach ($personels as $user) @endforeach @endif
@csrf
Adlı Kullanıcıya Yapmak istediğiniz işlemi seçiniz
@csrf
@if ($errors->any()) @include('components.error-modal-second') @elseif (session('success')) @include('components.success-modal') @elseif(session('error')) @include('components.error-modal') @endif @endsection @section('javascript') @endsection