@extends('layouts.master') @section('css') @endsection @section('title') {{ __('home.cost_center') }} @stop @section('page-header') @endsection @section('content')

{{ Nameen ?? '' }}

{{ describtionen ?? '' }}

{{ STen ?? '' }} {{ Taxen ?? '' }}
@php $logo = camplogo ?? 'default.png'; @endphp logo

{{ Namear ?? '' }}

{{ describtionar ?? '' }}

{{ STar ?? '' }} {{ Taxar ?? '' }}

{{ __('home.cost_center') }}

@php $currentdata = \Carbon\Carbon::now()->addHours(3)->format("Y-m-d H:i:s"); if($cost_center == '-'){ $name_cost = '-'; } else { $data_cost = App\Models\Cost_centers::find($cost_center); $name_cost = App::getLocale() == 'ar' ? ($data_cost->cost_center_ar ?? '-') : ($data_cost->cost_center_en ?? '-'); } @endphp
{{ __('report.fromdate') }}: {{ $start }} {{ __('report.todate') }}: {{ $end }} {{ __('home.cost_center') }}: {{ $name_cost }} {{ __('home.exportTime') }}: {{ $currentdata }}
@php $i = 1; $total_credit = 0; $total_debit = 0; $end_blance = 0; @endphp @foreach ($data as $item) @php $total_credit += $item->creditor; $total_debit += $item->debtor; $end_blance += $item->recive_amount; @endphp @php $i++; @endphp @endforeach
# {{ __('home.decoumentNo') }} {{ __('home.exportTime') }} {{ __('report.date') }} {{ __('users.branch') }} {{ __('home.cost_center') }} {{ __('home.expenseresonen') }} {{ __('home.employee') }} {{ __('accountes.Theamountpaid') }} {{ __('home.credit') }} {{ __('home.debit') }} {{ __('home.notesClient') }}
{{ $i }} {{ $item->sent_serf_count }} {{ $item->created_at }} {{ $item->date_export }} {{ $item->branch->name ?? '-' }} {{ App::getLocale() == 'ar' ? ($item->cost_center_data->cost_center_ar ?? '-') : ($item->cost_center_data->cost_center_en ?? '-') }} {{ $item->financial_accounts_data->name ?? '-' }} {{ $item->user->name ?? '-' }} {{ $item->recive_amount }} {{ round($item->debtor, 2) }} {{ round($item->creditor, 2) }} {{ $item->note ?? '-' }}
الإجمالي (Total): {{ $end_blance }} {{ round($total_debit, 2) }} {{ round($total_credit, 2) }} -
@endsection @section('js') @endsection