@extends('layouts.panel') @section('title', 'YöreTech SKT Kontrol') @section('header') @if($view === 'users') Kullanıcı Yönetimi @elseif($view === 'aisles') Reyon Tanımları @else Ürün Raporları @endif @endsection @section('content')
Kullanıcı
{{ $summary['users'] }}
Ürün
{{ $summary['products'] }}
Reyon
{{ $summary['aisles'] }}
@if($view === 'users')
Yeni Kullanıcı
@csrf
Excel/CSV ile Toplu Kullanıcı Yükle
@csrf
Sıra: Kullanıcı Adı, Rol, Şifre, Lisans Tarihi
Kullanıcı Düzenle
@if($editUser)
@csrf
@else
Düzenlemek için listeden bir kullanıcı seçin.
@endif
Kullanıcı Listesi
Temizle
@forelse($users ?? [] as $u) @empty @endforelse
Kullanıcı Rol Lisans Oluşturma İşlem
{{ $u->username }} {{ $u->role ?? 'user' }} {{ $u->license_until ? \Illuminate\Support\Str::of((string)$u->license_until)->substr(0, 10) : '-' }} {{ $u->created_at }} @php $query = array_merge(request()->query(), ['view' => 'users', 'edit_id' => $u->id]); @endphp Düzenle
@csrf
Kullanıcı bulunamadı.
@if(($usersTotalPages ?? 1) > 1) @php $query = request()->query(); $prevPage = max(1, ($usersPage ?? 1) - 1); $nextPage = min(($usersTotalPages ?? 1), ($usersPage ?? 1) + 1); @endphp @endif
@elseif($view === 'aisles')
Yeni Reyon
@csrf
Reyon Listesi
@forelse($aisles ?? [] as $a) @empty @endforelse
ReyonOluşturmaOluşturanİşlem
{{ $a->name }} {{ $a->created_at }} {{ $a->created_by ?: '-' }}
@csrf
Reyon bulunamadı.
@else
Rapor Filtreleri
Excel Aktar
@if($canViewAllReports)
@endif
@foreach($productOptions ?? [] as $prod) @php $value = $prod->barcode ?: $prod->name; @endphp @if($value !== '') @endif @endforeach
Temizle
Ürün Listesi
@if($showUserColumn ?? false)@endif @forelse($products ?? [] as $row) @if($showUserColumn ?? false)@endif @empty @endforelse
KullanıcıBarkod Ürün Kategori Reyon SKT Kalan Gün Bildirim Günü Miktar Birim
{{ $row->username }}{{ $row->barcode }} {{ $row->name }} {{ $row->category }} {{ $row->aisle }} {{ $row->expiry_date }} {{ $row->days_left }} {{ $row->alert_days }} {{ $row->quantity }} {{ $row->unit }}
Kayıt bulunamadı.
@endif @endsection @push('scripts') @endpush