@extends('layouts.app') @section('urlContent') {!! view('components.breadcrumbs', [ 'b_items' => [ 'Çalışan Maaş' => '/accounting/salary-index', 'Genel Hakediş' => '/accounting/general-payment-detail', ], ]) !!} @endsection @section('content')
@php $month = request('month') ? request('month') : now()->format('m'); $year = request('year') ? request('year') : now()->format('Y'); $startOfMonth = Carbon\Carbon::create($year, $month)->startOfMonth()->format('Y-m-d'); $centerOfMonth = Carbon\Carbon::create($year, $month)->addWeeks(2)->format('Y-m-d'); $endOfMonth = Carbon\Carbon::create($year, $month)->endOfMonth()->format('Y-m-d'); @endphp {{-- MONTH SELECT --}}
{{-- --}}
@foreach ($accountings as $accounting) @php $totalDebitMinius = $accounting[0]->debit_bes->sum(function ($item) { return $item->amount - $item->payyed; }) + $accounting[0]->debit_icra->sum(function ($item) { return $item->amount - $item->payyed; }) + $accounting[0]->debit_zimmet->sum(function ($item) { return $item->amount - $item->payyed; }) + $accounting[0]->debit_pervoiusMonthPaymentMinius->sum(function ($item) { return $item->amount - $item->payyed; }); $totalDebitPlus = $accounting[0]->debit_pervoiusMonthPaymentPlus->sum(function ($item) { return $item->amount - $item->payyed; }); $totalDebitCashPayment = $accounting[0]->debit_cashPayment ->where('cash_payment_status', false) ->sum(function ($item) { return $item->amount - $item->payyed; }); $totalCashPayment = $accounting ->where('cash_payment_status', false) ->sum('cash_payment'); $totalBankPayment = $accounting ->where('bank_payment_status', false) ->sum('bank_payment'); $totalExecutionDebt = $accounting->sum('icra_debt'); $totalPayment = $totalCashPayment + $totalBankPayment + $totalDebitPlus; $totalCostWithDebit = $totalPayment - $totalDebitCashPayment - $totalDebitMinius; @endphp @endforeach
Ad Soyad Hizmetler BES İcra Kesintisi Zimmet Kesintisi Geçen Aydan - Devir Geçen Aydan + Devir Ek Ücret Toplam Gun Sayisi Toplam Hakediş Ödenmesi Gereken Banka Ödenmesi Gereken Nakit Detay
{{ $accounting[0]->user->full_name }} {{ $accounting[0]->user->roles->first()->title }} {{ $accounting[0]->debit_bes->sum('amount') }} {{ $totalExecutionDebt }} {{ $accounting[0]->debit_zimmet->sum('amount') }} {{ $accounting[0]->debit_pervoiusMonthPaymentMinius->sum('amount') }} {{ $accounting[0]->debit_pervoiusMonthPaymentPlus->sum('amount') }} {{ $accounting[0]->additional_fee->sum('additional_fee') }} {{ count($accounting->where('sgk_working_day', 1)) }} {{ sprintf('%.2f', $accounting->sum('cash_payment') + $accounting->sum('bank_payment')) }} TL {{ sprintf('%.2f', $accounting->where('bank_payment_status', false)->sum('bank_payment')) }} {{ sprintf( '%.2f', $accounting->where('cash_payment_status', false)->sum(function ($item) { return $item->cash_payment - $item->payed_cash_payment; }), ) }} Detay
Yeniden Hesaplamak için gerekli alanları seçin
@csrf
Yapmak istediğiniz işlemi seçiniz
@csrf
@if ($errors->any()) @include('components.error-modal-second') @endif @if (session('error')) @include('components.error-modal') @endif @if (session('success')) @include('components.success-modal') @endif @endsection @section('javascript') @endsection