@extends('layouts.app') @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Taleplerim' => '/department/requests', ], ]) !!} @endsection @section('content')

{{ \Carbon\Carbon::now()->isoFormat('D MMMM Y') }} Tarihindeki Talepler

    @foreach ($data as $item)
  1. {{ $item->department->name }} #{{ $item->ticket_id }}

    @if (count($item->demands) > 0)
    @php $allDemandsQuantity = 0; foreach ($item->demands as $demand) { $quantity = $demand->quantity; $allDemandsQuantity += $quantity; } @endphp {{ $allDemandsQuantity }} Adet Çalışan Talep Ediliyor
    @else Henüz Atama Yapılmamış @endif

    {{ $item['date'] }}

    @php $message = ''; @endphp @foreach ($item->demands as $demand) @if ($demand->demand_status == 1) @php $message = 'Onaylandı'; @endphp @if ($demand->sifts->where('status', 1)->count() >= $demand->quantity) @php $message = 'Onaylandı'; @endphp @endif @endif @if ($demand->demand_status == 3) @php if ($item->department->customer_user->roles[0]->name == 'Company') { $message = 'Firma Onayında'; } elseif ($item->department->customer_user->roles[0]->name == 'Branch') { $message = 'Şube Onayında'; } else { $message = 'HATA'; } @endphp @endif @if ($demand->demand_status == 0) @php $message = 'Firma Onayında'; @endphp @endif @if ($demand->demand_status == 2) @php $message = 'Reddedildi'; @endphp @break @endif @endforeach

    {{ $message }}

    @if ($demand->tickets->date > now()->format('d.m.Y')) Düzenle @endif
  2. @endforeach @if (count($data) <= 0) Hiç Veri Bulunamadı @endif
{{--
@csrf --}} {{--
--}}
{{ $current_month->month_name }}
{{--
@csrf --}} {{--
--}}
P
S
Ç
P
C
C
P
@foreach ($allData as $data) @php $ticketDates = $allTickets ->pluck('date') ->map(function ($date) { return Carbon\Carbon::parse($date)->format('Y-m-d'); }) ->toArray(); @endphp @if ($data->day == $current_day && $data->month == $current_month->month && $current_month->month == now()->format('m')) {{-- bugun ise --}} @else @endif @endforeach
@if (session('error')) @include('components.error-modal') @endif @if (session('success')) @include('components.success-modal') @endif @endsection @section('javascript') @endsection