@extends('layouts.app') @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Puantaj' => '/department/customerPayroll', ], ]) !!} @endsection @section('content')
Vergi Dairesi : {{ $firm->tax_admin }}
Vergi No : {{ $firm->tax_no }}
{{--SGK Sicil No : 124312321322222222222222
--}}Adres : {{ $firm->firm_address }}
Web Adresi : {{ $firm->web_address }}
Ad Soyad | Tc No | Ünvan | @foreach ($days as $day) @php if ($day->day_of_week == 0) { $day_name = 'Pzt'; } elseif ($day->day_of_week == 1) { $day_name = 'Sal'; } elseif ($day->day_of_week == 2) { $day_name = 'Çrş'; } elseif ($day->day_of_week == 3) { $day_name = 'Prş'; } elseif ($day->day_of_week == 4) { $day_name = 'Cum'; } elseif ($day->day_of_week == 5) { $day_name = 'Cmt'; } elseif ($day->day_of_week == 6) { $day_name = 'Pzr'; } @endphp{{ $day->day }} {{ $day_name }} | @endforeachÇalıştığı Süre | Toplam Mesai | Birim Fiyat | Mesai Birim Fiyatı | Toplam Hakediş | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $accounting[0]->user->full_name }} | {{ $accounting[0]->user_tckn }} | {{ Spatie\Permission\Models\Role::find($accounting[0]->job_id)->title }} | @foreach ($days as $key => $day) @php $dayDate = Carbon\Carbon::create($day->date)->format('Y-m-d'); $status = $accounting[0]->status; $backgroundColors = [ 'n' => 'bg-amber-300', 't' => 'bg-orange-800', 'h' => 'bg-red-950', 'i' => 'bg-gray-300', 'r' => 'bg-pink-400', 'e' => 'bg-fuchsia-600', 'y' => 'bg-cyan-500', 's' => 'bg-green-700', 'k' => 'bg-orange-400', 'c' => 'bg-slate-600', ]; @endphp @php $offDay = $offDays ->where('day_off_start_day', $dayDate) ->where('personel_user_id', $accounting[0]->user_id) ->first(); @endphp @if ($accounting->contains('working_date', $dayDate)) @if ( $accounting->where('working_date', $dayDate)->first()->status == '1' || $accounting->where('working_date', $dayDate)->first()->status == 'n')@elseif ($accounting->where('working_date', $dayDate)->first()->status == 't') | @elseif ($accounting->where('working_date', $dayDate)->first()->status == 'h') | @elseif ($accounting->where('working_date', $dayDate)->first()->status == 'i') | @elseif ($accounting->where('working_date', $dayDate)->first()->status == 'r') | @elseif ($accounting->where('working_date', $dayDate)->first()->status == 'e') | @elseif ($accounting->where('working_date', $dayDate)->first()->status == 'y') | @elseif ($accounting->where('working_date', $dayDate)->first()->status == 's') | @elseif ($accounting->where('working_date', $dayDate)->first()->status == 'k') | @elseif ($accounting->where('working_date', $dayDate)->first()->status == 'c') | @endif @else @php $offDay = $offDays ->where('day_off_start_day', $dayDate) ->where('personel_user_id', $accounting[0]->user_id) ->first(); @endphp @if ($offDay != null) @if ($offDay->day_off_type == '0') | Üİ | @elseif ($offDay->day_off_type == '1')H | @elseif ($offDay->day_off_type == '2')R | @endif @else@endif @endif @endforeach @php $startTime = \Carbon\Carbon::parse('00:00:00'); $time = 0; $shiftTime = 0; $totalCostPayment = 0; foreach ($accounting as $key => $timeItem) { $timeSecond = \Carbon\Carbon::parse($timeItem->working_time)->diffInSeconds( $startTime, ); $time += $timeSecond; $shiftTimeSecond = \Carbon\Carbon::parse($timeItem->shift)->diffInSeconds( $startTime, ); $shiftTime += $shiftTimeSecond; $totalCostPayment += $timeItem->totalcost_with_offer; } $timeDay = floor($time / 86400); $timeHour = floor(($time % 86400) / 3600); $timeMinute = floor(($time % 3600) / 60); $timeSecond = $time % 60; $shiftTimeDay = floor($shiftTime / 86400); $shiftTimeHour = floor(($shiftTime % 86400) / 3600); $shiftTimeMinute = floor(($shiftTime % 3600) / 60); $shiftTimeSecond = $shiftTime % 60; $offers = \App\Models\Offer::whereIn('id', $accounting->pluck('deal_offer_id'))->get(); @endphp | {{ sprintf('%02d:%02d:%02d', $timeHour + $shiftTimeDay * 24, $timeMinute, $timeSecond) }} | {{ sprintf('%02d:%02d:%02d', $shiftTimeHour + $shiftTimeDay * 24, $shiftTimeMinute, $shiftTimeSecond) }} |
@foreach ($offers as $offer)
Saatlik{{ $offer->offerProducts->where('category_id', $accounting[0]->user->roles[0]->id)->first()->cost_hourly }} Günlük{{ $offer->offerProducts->where('category_id', $accounting[0]->user->roles[0]->id)->first()->cost_daily }} Aylık{{ $offer->offerProducts->where('category_id', $accounting[0]->user->roles[0]->id)->first()->cost_monthly }} |
@foreach ($offers as $offer)
Saatlik{{ $offer->offerProducts->where('category_id', $accounting[0]->user->roles[0]->id)->first()->cost_hourly * 1.5 }} Günlük{{ $offer->offerProducts->where('category_id', $accounting[0]->user->roles[0]->id)->first()->cost_daily * 1.5 }} Aylık{{ $offer->offerProducts->where('category_id', $accounting[0]->user->roles[0]->id)->first()->cost_monthly * 1.5 }} |
{{ sprintf('%.2f', $totalCostPayment) }} TL |