@extends('layouts.admin') @section('title') PROCESAR DEVOLUCION @stop @section('titulo') PROCESAR DEVOLUCION @stop {{--@section('libros-opcion')active @stop--}} @section('descripcion') @stop @section('content')
@if($devolucion->tipo_devolucion=='PARCIAL')

NOTA DE REMISION

VENDEDOR: {{$devolucion->contrato->vendedor->nombre_completo}} FECHA REMISION: {{$devolucion->fecha_remision->format('d/m/Y')}}
@php $cont=0 @endphp @foreach($devolucion->detalle()->where('sw',0)->get() as $k=>$d) @endforeach
No Cantidad Codigo Titulo Tomo
{{$cont+1}} {{$d->cantidad}} {{$d->codigo}} {{$d->titulo}} {{$d->volumen}}
Total {{$devolucion->detalle->where('sw',0)->sum('cantidad')}}
@endif

NOTA DE DEVOLUCION

VENDEDOR: {{$devolucion->contrato->vendedor->nombre_completo}} FECHA DEVOLUCION: {{$devolucion->fecha->format('d/m/Y')}}

@foreach($devolucion->detalle()->where('sw',1)->get() as $k=>$d) @endforeach
No Cantidad Codigo Titulo Tomo
{{$k+1}} {{$d->cantidad}} {{$d->codigo}} {{$d->titulo}} {{$d->volumen}}
Total {{$devolucion->detalle->where('sw',1)->sum('cantidad')}}
REGRESAR @section('scripts') @stop @endsection