@extends('layouts.main')

@section('breadcrumbs')
    {{ Breadcrumbs::render(request()->route()->getName()) }}
@endsection

@section('content')
    <div class="w-full grid gap-5 lg:gap-7.5 mx-auto">

        <div class="card border border-agi-100 pb-2.5">
            <div class="card-header bg-agi-50" id="basic_settings">
                <h3 class="card-title">
                    {{ isset($document->id) ? 'Edit' : 'Tambah' }} Data Jaminan
                </h3>
                <div class="flex items-center gap-2">
                    @if (Auth::user()->roles[0]->name === 'admin')
                    <a href="{{ url()->previous() }}" class="btn btn-xs btn-info">
                        <i class="ki-filled ki-exit-left"></i> Back
                    </a>
                    @else
                    <a href="{{ route('debitur.jaminan.index',$debitur->id) }}" class="btn btn-xs btn-info"><i class="ki-filled ki-exit-left"></i> Back</a>
                    @endif
                </div>
            </div>
            <div class="card-body">
                @include('lpj::debitur.components.dokumen')
            </div>
        </div>
    </div>
@endsection
