@extends('tenant.pos.pos-tabs') @php $activeTab = 'sales_days'; @endphp @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ __('breadcrumb.pos') => '#', __('breadcrumb.daily_sales') => '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'pos.sales-days']) @endsection @section('content-field')
@php $selected_branches = request('branches_ids')?? []; @endphp
@php $from_date = (request()->from_date)?? $active_year->from; @endphp
@php $to_date = (request()->to_date)?? $active_year->to; @endphp
@php $status_default = !request()->has('posted') && !request()->has('unposted'); @endphp
@forelse ($days as $day) @empty @endforelse
@lang('pos/sales-days/index.date') @lang('pos/sales-days/index.branch') @lang('pos/sales-days/index.sales') @lang('pos/sales-days/index.returns') @lang('pos/sales-days/index.closure_status') @lang('pos/sales-days/index.posting_status') @lang('pos/sales-days/index.cashiers') @lang('general.procedures')
{{ $day->day_date }} {{ $day->branch->name }} {{ dn($day->sales_total) }} {{ dn($day->returned_sales_total) }} {{ $day->is_closed ? 'مغلق' : 'غير مغلق' }} {{ $day->post_status ? 'مرحّل' : 'غير مرحّل' }}
@lang('pos/sales-days/index.cashiers')
@php // ترتيب الـ boxes حسب التاريخ الأحدث $latestBoxes = $day->boxes->sortByDesc('created_at'); // نأخذ فقط أول ظهور لكل كاشير (user_id) $uniqueBoxes = $latestBoxes->unique('user_id'); @endphp @foreach($uniqueBoxes as $box) @endforeach
@lang('pos/sales-days/index.cashiers') @lang('pos/sales-days/index.status')
{{ $box->user->full_name }} {{ $box->is_closed == 0 ? 'مفتوح' : 'مغلق' }}
@can('pos-daysSales-showDetails')
  • مشاهدة الحركات
  • @endcan @if (!$day->is_closed) @can('pos-daysSales-close')
  • @csrf
  • @endcan @endif @if ($day->is_closed && !$day->post_status) @can('pos-daysSales-post')
  • @csrf
  • @endcan @endif @if ($postingType === 'per_day' && is_null($day->started_fotara_at)) @can('pos-daysSales-postToFotara')
  • @csrf
  • @endcan @endif
    @lang('pos/sales-days/index.no_results')
    @endsection @push('script') @endpush