@extends('layouts.app') @php $date = request()->date ?? now()->format('Y-m-d'); @endphp @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Günlük Talepler' => '/operation/daily-tickets/index', 'Taleplerim' => '/operation/daily-tickets/customers/demands?date=' . $date, 'Departmanlar' => '/operation/daily-tickets/customer/' . $customer->id . '/departments?date=' . $date, 'Departman Talepleri' => '/operation/daily-tickets/customer/' . $customer->id . '/department/' . $department->id . '/demands?date=' . $date, 'Talep Detayı' => '/operation/daily-tickets/customer/' . $customer->id . '/department/' . $department->id . '/demand/' . $demand->id . '?date=' . $date, ], ]) !!} @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