@extends('app') @section('content')

{{ Form::open(['route' => ['orders.destroy', $order->id], 'method' => 'delete']) }} {{ Form::close() }} {{-- Πίσω --}} Στοιχεία παραγγελίας


    @foreach($order->orderItems as $orderItem)

    {{ $orderItem->getFormattedCategory() }} - {{ $orderItem->getFormattedSubCategory() }}

    @if($orderItem->visits > 0) {{ Form::open(['route' => ['orders.delete_order_item', $orderItem->id], 'method' => 'delete', 'class' => 'form-horizontal']) }}
    {{ $errors->first('discount') }}
    Επισκέψεις
    x    {{ $orderItem->subCategory->price_per_visit * (1 - $order->discount / 100) }}     =    {{ $orderItem->visits * ($orderItem->subCategory->price_per_visit * (1 - $order->discount / 100)) }}
    {{ Form::close() }} @endif
    @endforeach
{{-- Discount --}}
{{ $errors->first('discount') }}
Έκπτωση %
{{-- Advance payment --}} {{--
{{ $errors->first('advance_payment') }}
Προκαταβολή
--}}
Σύνολο: {{ $order->getTotal() }} 
{{-- Submit --}}
@endsection @section('scripts') @stop