@extends('layouts.admin',['activePage' => 'dashboard', 'menuParent' => 'Dashboard', 'titlePage'=>('Dashboard')])
@section('titulo', 'Dashboard')
@section('breadcrumb')
@yield('titulo')
@endsection
@section('estilos')
@endsection
@section('contenido')
@if(auth()->user()->role->role_id == 1)
Almacen |
Nombre |
@foreach($almacenes as $a)
{{$a['Almacen']}} |
{{$a['Descripcion']}} |
@endforeach
Fecha |
Folio |
Importe |
Estatus |
@foreach($documentos as $p)
@php
$label="badge-secondary";
if($p['Estatus']=="Cancelado"){
$label="badge-danger";
}elseif($p['Estatus']=="Facturado"){
$label="badge-success";
}elseif($p['Estatus']=="PorAutorizar"){
$label="badge-primary";
}else{
$label="badge-secondary";
}
@endphp
{{date("d-m-Y", strtotime($p['Fecha']))}} |
{{$p['Folio']}} |
$ {{number_format($p['Precio'],2) }} |
|
@endforeach
Cuenta |
Nombre |
Estatus |
Fecha |
@foreach($clientes as $c)
{{$c->id_intesys}} |
{{$c->name}} |
|
{{date("d-m-Y", strtotime($c->created_at))}} |
@endforeach
@else
Fecha |
Folio |
Importe |
Estatus |
@php
$cont=0;
@endphp
@foreach($documentos as $p)
@php
$label="badge-secondary";
if($p['Estatus']=="Cancelado"){
$label="badge-danger";
}elseif($p['Estatus']=="PorSurtir"){
$label="badge-success";
}
@endphp
{{date("d-m-Y", strtotime($p['Fecha']))}} |
{{$p['Folio']}} |
$ {{number_format($p['Precio'],2) }} |
|
@php
$cont++;
@endphp
@if($cont ==1)
@break;
@endif
@endforeach
Nombre |
{{$datosCliente['Nombre']}} |
Teléfono |
{{$datosCliente['Telefono']}} |
Email |
{{$datosCliente['Email']}} |
Dirección |
{{$datosCliente['Domicilio']}} |
CP |
{{$datosCliente['CodigoPostal']}} |
Colonia |
{{$datosCliente['Colonia']}} |
Municipio |
{{$datosCliente['Municipio']}} |
Estado |
{{$datosCliente['Estado']}} |
@endif
@endsection
@section('scripts')
@endsection