@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')
{{ $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