@extends('adminlte::page') @section('title', 'Sipariş Ver — ' . $template->name) @section('css') @endsection @section('content') @php $typeColors = [ 'daily' => '#27ae60', 'weekly' => '#2980b9', 'manual' => '#8e44ad', ]; $typeLabels = ['daily' => 'Günlük', 'weekly' => 'Haftalık', 'manual' => 'Manuel']; $color = $typeColors[$template->type] ?? '#555'; $label = $typeLabels[$template->type] ?? $template->type; @endphp
{{-- Başlık --}}
{{ $template->name }}
{{ optional($template->toBranch)->name }} {{ $label }}
{{ now()->format('d.m.Y') }}
{{ now()->format('l') }}
@if(session('error'))
{{ session('error') }}
@endif
@csrf {{-- Ürünler --}}
Ürünler
@foreach($template->items as $i => $item) @php $defaultQty = $item->default_quantity > 0 ? $item->default_quantity : 1; @endphp
{{-- Toggle --}} {{-- Ürün Bilgisi --}}
{{ optional($item->product)->name }}
{{ optional($item->packageType)->name }} @if($item->default_quantity > 0) · Varsayılan: {{ $item->default_quantity }} @endif
{{-- Miktar --}}
{{-- Hidden inputs --}}
@endforeach
{{-- Not --}}
{{-- Alt bar --}}
{{ $template->items->count() }} ürün seçili
İptal
@section('js') @endsection @endsection