Ordenes

@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif @foreach($orders as $o=>$order) @endforeach
ID {!! ($sortBy=='orders.id')?($sortDirection =='asc')? '↑': '↓':'' !!} Monto {!! ($sortBy=='orders.amount')?($sortDirection =='asc')? '↑': '↓':'' !!} Nombre {!! ($sortBy=='clients.name')?($sortDirection =='asc')? '↑': '↓':'' !!} Apellido 1 {!! ($sortBy=='orders.surname1')?($sortDirection =='asc')? '↑': '↓':'' !!} Apellido 2 {!! ($sortBy=='orders.surname2')?($sortDirection =='asc')? '↑': '↓':'' !!} Teléfono {!! ($sortBy=='orders.phone')?($sortDirection =='asc')? '↑': '↓':'' !!} Estatus {!! ($sortBy=='orderstatuses.name')?($sortDirection =='asc')? '↑': '↓':'' !!} Creación {!! ($sortBy=='orders.created_at')?($sortDirection =='asc')? '↑': '↓':'' !!} Detalle
{{$order->id}} $ {{$order->amount}} {{$order->name}} {{$order->surname1}} {{$order->surname2}} {{$order->phone}} {{$order->orderstatus}} {{$order->created_at}}

{{ $orders->links() }}