@extends('adminlte::page') @section('title', $title??'') @section('content_header')

{{$title??''}}

@stop @section('content')
Atrás
Sucursal {{$frame->branch->name}}
Marca {{$frame->brand->name}}
Tipo de Montura {{$frame->frameType->name}}
Código de Montura {{$frame->code}}
Medida {{$frame->size}}
Color {{$frame->color}}
Código de Barra o QR {{$frame->qrcode}}
Moneda {{$frame->currency_type == 'SUS' ? 'Dólares ($us)' : 'Bolivianos (Bs)'}}
Precio de Compra {{$frame->currency_type == 'SUS' ? $frame->pricebuy_sus : $frame->pricebuy_bs}}
Precio de Venta {{$frame->currency_type == 'SUS' ? $frame->pricesale_sus : $frame->pricesale_bs}}
Detalles {{$frame->details}}
@if (!$frame->status) @endif
Foto 1 @if (!is_null($frame->frame_photo_path) && !empty($frame->frame_photo_path)) @endif
Foto 2 @if (!is_null($frame->frame_photo_path2) && !empty($frame->frame_photo_path2)) @endif
Foto 3 @if (!is_null($frame->frame_photo_path3) && !empty($frame->frame_photo_path3)) @endif
Fecha de Creación {{convertDateEs($frame->created_at,'dt')}}
Estado {{$frame->status?'Habilitado':'Deshabilitado'}}
Detalles de Deshabilitación {{$frame->detailsinactive}}

@foreach ($histories as $history) @endforeach
N Estado Descripción Fecha Usuario Ip
{{$loop->iteration}} {{$history->status_frame}} {{$history->description}} @switch($history->status_frame) @case('Transferencia de Montura')
Orígen: {{$history->description_decode['Origen']}} --- Destino: {{$history->description_decode['Destino']}} @break @case('Recepción de Montura')
Destino: {{$history->description_decode['Destino']}} @break @case('Creación de Montura')
Orígen: {{$Branch::find($history->description_decode['id_branch'])->name}} @break @default @endswitch
{{convertDateEs($history->created_at,'dt')}} {{$history->user->person->names_concatenate}} {{$history->ip}}
@stop @section('css') @stop @section('js') @stop